3. A vector can be represented by a 1 by 3 matrix in either rectangular coordinates...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. A vector can be represented by a 1 by 3 matrix in either rectangular coordinates (x, y, z) or spherical coordinates (r, 0, 0). The conversions among those two sets of coordinates are given by the following equations: x = r cos o cos 0, y = r cos op sin 0, z = r sin op to convert from spherical to rectangular r = x + y+z2,0 = tan 1 = tanto convert from rectangular to spherical Write a function that accepts two arguments: a 1 by 3 matrix and a number (where a 1 represents converting rectangular to spherical or a 2 that represents converting spherical to rectangular coordinates -note: display an error for any other number other than 1 or 2) then performs the conversion which is the output variable. The values of 0 and op are in degrees and atan) returns radians for the tangent inverse (tan'). This program will require if statements. (16 pts) 3. A vector can be represented by a 1 by 3 matrix in either rectangular coordinates (x, y, z) or spherical coordinates (r, 0, 0). The conversions among those two sets of coordinates are given by the following equations: x = r cos o cos 0, y = r cos op sin 0, z = r sin op to convert from spherical to rectangular r = x + y+z2,0 = tan 1 = tanto convert from rectangular to spherical Write a function that accepts two arguments: a 1 by 3 matrix and a number (where a 1 represents converting rectangular to spherical or a 2 that represents converting spherical to rectangular coordinates -note: display an error for any other number other than 1 or 2) then performs the conversion which is the output variable. The values of 0 and op are in degrees and atan) returns radians for the tangent inverse (tan'). This program will require if statements. (16 pts)
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Give the typing rules for Peano natural numbers and their eliminator.(ii) Using the rules given above, define the addition function.] (iii) Let a binary tree be either a leaf Leaf or a node...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
How are writable CDs implemented?
-
The following transactions occurred during 2017. Assume that depreciation of 10% per year is charged on all machinery and 5% per year on buildings, on a straight-line basis, with no estimated...
-
A company uses three different assembly lines-A1, A2, and A3-to manufacture a particular component. Of those manufactured by line A1, 5% need rework to remedy a defect, whereas 8% of A2's components...
-
Dr. Walter Sullivan was one of several plastic surgeons in Las Vegas visited by Julie Jones. Jones, an exotic dancer, sought plastic surgery to improve her ability to make money in her profession....
-
In analyzing legal expense for the Boastman Bottle Company, Mary Little, CPA, observes that the company has paid legal fees to three different law firms during the current year. In accordance with...
-
A customer enters a doctors office to acquire information about swine flu and the potential impact of the influenza. She speaks Creole and is lost in the building. Finally, she is able to locate a...
-
BeActive Sporting Goods sells tandem bicycles. The following data was taken from the most recent quarterly sales forecast. April May June Expected Sales (units) Target monthly ending inventory...
-
A Canadian manufacturer of blow-molding machines (HS#8477.30) has sold a U.S. importer three machines with an invoice value of US$28,900.00. The machines weigh one hundred ninety (190) pounds each....
-
On July 16, 2018, Jeet Kune Do borrowed USD 50 million by issuing USD 50 million of bonds payable in 30 years. Its bonds have a USD 1,000 par value, and they pay a coupon rate of 12% semiannually....
-
Determine the wavelength and energy for light with a frequency of 5.823 1014 s-1. = E = nm kJ/mol
-
Spinning Gears has reported their beginning materials of $75,800 and ending material inventory of $79,200. In order to produce their 12" gear, they need $500,000 for production. How much in direct...
-
A typical level of sodium in blood is 3.24 mg/mL. What is the millimolar concentration of sodium in blood?
-
When DeSoto Water Works purchased a equipment at the end of 2020 at a cost of $73,000, the company debited Buildings and credited Cash $73,000. The error was discovered in 2021. Prepare the journal...
-
31. What is the income that can be received over 15 years from $500,000 earning 6% annually? 32. What is the semiannual payment required to retire $50,000 in debt over 5 years at 8% compounded...
-
Determine the force on each member of the truss and state if the members are in tension or compress. Set P1 = 500lb and P2 =100lb. 6ft 8it P:
-
Express force F as a Cartesian vector; then determine its coordinate direction angles. Given: F = 600 lb c = 3 ft a = 1.5 ft φ = 60 deg b = 5 ft F
-
Using integration, compute both the area and the centroidal distance xc of the shaded region. Then, using the second theorem of PappusGuldinus, compute the volume of the solid generated by revolving...
-
The following actual balance sheet was prepared for Martins Musical Supplies Ltd as at 30 September 2020. At 30 September, you are also provided with the following information. 1. Sales forecasts...
-
Based on your reading of this chapter, the following job description, and the two rsums below, analyze the two applicants for the position. What are their strengths and weaknesses as highlighted by...
-
Write a rsum that you could use in your job search. As your instructor directs, a. Write a rsum for the field in which you hope to find a job. b. Write two different rsums for two different job paths...
Study smarter with the SolutionInn App