subject

Consider a planet that follows an elliptical orbit. The perimeter of an ellipse with a major axis a and minor axis b is 4a V1 - k-sin-e do where k = Va? – b?. For a given a major axis a and minor axis b, calculate the distance the planet travels, by completing: a 1. the subfunction TrapzPlanet that uses trapeziodal numerical integration (using the internal function trapz) and a given number of discrete points.
2. the subfunction IntegratePlanet that uses the internal function integral.
Ex:
a = 3.01*10^ 9; b = 2.74*10^9; [trapzApprox, numIntegrate] = PlanetDistance(a, b, 1000) produces trapzApprox = 1.8074e+10 numIntegrate = 1.8074e+10 Function Save C Reset MATLAB Documentation 2 1 function [trapz Approx, numIntegrate] PlanetDistance(a, b, points) trapzApprox=TrapzPlanet(a, b, points); numIntegrate=IntegratePlanet(a, b); 4 end 3 5 6 function trapzApprox=TrapzPlanet(a, b,points) 7 8 % Your code goes here 9 10 end 11 12 function numIntegrate=IntegratePlanet(a, b) 13 14 % Your code goes here 15 16 end Code to call your function C Reset 1 a = 3.01*10^9; b = 2.74*10^9; 2 [trapzApprox, numIntegrate] = PlanetDistance(a, b, 1000)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
This program should be a short piece of code that prints all of the positive integers from 1 to 100 as described more fully below. the program may contain multiple methods, and if using an oo language, should be contained within a single class or object. the program should be designed so that it begins execution when invoked through whichever mechanism is most common for the implementation language. â–ş print out all positive integers from 1 to 100, inclusive and in order. â–ş print messages to standard output, matching the sample output below. â–ş in the output, state whether the each integer is 'odd' or 'even' in the output. â–ş if the number is divisible by three, instead of stating that the number is odd or even, state that the number is 'divisible by three'. â–ş if the number is divisible by both two and three, instead of saying that the number is odd, even or divisible by three; state that the number is 'divisible by two and three'. â–ş design the logic of the loop to be as efficient as possible, using the minimal number of operations to perform the required logic. sample output the number '1' is odd. the number '2' is even. the number '3' is divisible by three. the number '6' is divisible by two and three.
Answers: 1
You know the right answer?
Consider a planet that follows an elliptical orbit. The perimeter of an ellipse with a major axis a...
Questions
question
English, 16.04.2021 17:20
question
Mathematics, 16.04.2021 17:20
question
Mathematics, 16.04.2021 17:20
Questions on the website: 13722363