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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:50, Emptypockets451
You need to design a circuit that implements the functions in the following table: s0 s1 function0 0 a + 10 1 a – b1 0 a + b1 1 a – 1s0 and s1 are 1-bit control inputs to select the function of the circuit. inputs a and b are 4-bitnumbers in 2s complement form. the output is also a 4-bit number in 2s complement form. you are allowed to use only one ttl 7483 4-bit adder to implement all the functions. but anynumber of other components (except the adder) can be used. hint: design a combinational logic circuit to modify the input b and the “carry input” of theadder depending on the control inputs s0 and s1.important: lab grade will depend on the working of the circuit & will be checked of by your labinstructor.1. is the output valid for the following input combinations: a. s0 = 0, s1 = 0, a = 7, b = 3? b. s0 = 0, s1 = 1, a = 7, b = 3? c. s0 = 1, s1 = 0, a = -4, b = -5? d. s0 = 1, s1 = 1, a = -8, b = 6? 2. what is the range of inputs (for both a and b) that will produce the valid output for all the functions?
Answers: 3
image
Computers and Technology, 23.06.2019 04:00, coolconnor1234p0sv4p
Another name for addicting games. com
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, terrell31
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x, y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documenta tion/point2d. html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
image
Computers and Technology, 23.06.2019 05:00, sharkboy578
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
You know the right answer?
Consider a planet that follows an elliptical orbit. The perimeter of an ellipse with a major axis a...

Questions in other subjects:

Konu
Mathematics, 03.12.2019 23:31