Question: Problem 3 . 4 Call the function FirstName _ LastName _ CartToPolar.m . Test your program in the command window evaluating the following cases:

Problem 3.4 Call the function FirstName_LastName_CartToPolar.m.
Test your program in the command window evaluating the following cases:
\table[[x,Y,r,\theta ],[2,0,,],[2,1,,],[0,3,,],[-3,1,,],[-2,0,,],[-1,-2,,],[0,0,,],[0,-2,,],[2,3,,]]
Two distances are required to specify the location of a point relative to an origin in two-
dimensional space:
The horizontal and vertical distances (x,y) in Cartesian coordinates.
The radius and angle (r, in polar coordinates.
It is relatively straightforward to compute Cartesian coordinates (x,y) on the basis of polar
coordinates (r,). The reverse process is not so simple. The radius can be computed by the
following formula:
r=x2+y22
If the coordinates lie within the first and fourth coordinates (i.e.,x>0), then a simple formula
can be used to compute :
=tan-1(yx)
The difficulty arises for the other cases. The following table summarizes the possibilities:
Problem 3 . 4 Call the function FirstName _

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!