Write a program to compute sinx the name of the program is


Please anwser using scilab notation thank you

Write a program to compute sin(x). The name of the program is dsin, and it accepts the user input - x - in degrees.

Your program converts x to radians, and uses taylor series to compute sin(x) within some defined accuracy.

The program has two versions; one version uses the ‘while' construct, and the other version uses the ‘for' construct.

Note:

• Taylor series approximates the sinusoidal function for -180 = x = 180 degrees (or -pi = x = pi). If your input is out of this range, your program must translate it to a value within the range.

• When you run dsin, it prompts; Enter angle in degrees:

• After you type desired angle, the result will return.

• You are not allowed to use the trigonometric functions provided by Matlab!

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program to compute sinx the name of the program is
Reference No:- TGS02888565

Expected delivery within 24 Hours