Question

In: Mechanical Engineering

Create a script that calculates the sine, cosine, and tangent of a vector from 0 to2?...

Create a script that calculates the sine, cosine, and tangent of a vector from 0 to2? with steps of ?/16. The numbers should have three digits to the right of the decimal. Determine an appropriate field width. Use fprintf to display the output in tabular format with the following headers. x sin(x) cos(x) tan(x) Also, plot the three equations in the same figure window, but on separate axes. Plot all thee equations from 0 to 2? on the x-axis. Plot the tangent values (y axis) from -5 to 5 only.

Solutions

Expert Solution


Related Solutions

Find the exact values of the sine, cosine, and tangent of the angle. −195° = 30°...
Find the exact values of the sine, cosine, and tangent of the angle. −195° = 30° − 225° sin(−195°) = cos(−195°) = tan(−195°) =
Find the Fourier cosine and sine series of f(t) = t^2 ,0 < t < π
Find the Fourier cosine and sine series of f(t) = t^2 ,0 < t < π
Bash script: Create a bash script that takes numbers as parameters, calculates sum and prints the...
Bash script: Create a bash script that takes numbers as parameters, calculates sum and prints the result. If no parameters passed, prompt a user (only one time) to enter numbers to sum and print the result. Submit your program as LastName_FirstName.sh file.
Determine the equation of a sine or cosine function for the vertical position, in metres, of...
Determine the equation of a sine or cosine function for the vertical position, in metres, of a rider on a Ferris Wheel, after a certain amount of time, in seconds. The maximum height above the ground is 26 metres and the minimum height is 2 metres. The wheel completes one turn in 60 seconds. Assume that the lowest point is at time = 0 seconds.
The solution for the finite potential well is a combination of sine and cosine functions a...
The solution for the finite potential well is a combination of sine and cosine functions a combination of exponential functions a combination of exponential functions and sine and/or cosine functions a third degree polynomial
Create a bash script that takes numbers as parameters, calculates sum and prints the result. If...
Create a bash script that takes numbers as parameters, calculates sum and prints the result. If no parameters passed, prompt a user (only one time) to enter numbers to sum and print the result.
Use both cosine law/sine law and the component method to answer the following: A missile of...
Use both cosine law/sine law and the component method to answer the following: A missile of mass 1000 kg is fired down a test range at 500 m/s. It explodes into five pieces. A 300 kg piece moves west at 300 m/s, a 50 kg piece moves east at 700 m/s, 100 kg piece moves northeast at 700 m/s and a 200 kg mass moves Southwest at 100 m/s. Calculate the velocity of the remaining piece after the explosion.
The phase difference between sine and cosine function is 90 degrees true or false Phase shift...
The phase difference between sine and cosine function is 90 degrees true or false Phase shift of a sinusoid function can be either positive or negative. true or false
Please explain and give an example: Planar Trigonometry, Right trianges, laws of sine and cosine. Please...
Please explain and give an example: Planar Trigonometry, Right trianges, laws of sine and cosine. Please type answer do not hand write. Thank you
a) Find the Fourier Cosine Transform of ?(?) = sin ? ; 0 < ? <...
a) Find the Fourier Cosine Transform of ?(?) = sin ? ; 0 < ? < ?. b) Solve, by using Laplace Transform: ?" + ? = 3 ??? 2?; ?(0) = 0, ?′(0) = 0.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT