Question: VB.Net Write a program that calculates the sine, cosine, and tangent including their error values base upon an input value. In addition create a button
VB.Net Write a program that calculates the sine, cosine, and tangent including their error values base upon an input value. In addition create a button that would save this table as a text as shown in the sample program that would increment by 5 and calculate the sine, cosine, and tangent for each along witht their error values.
The basic outline of the program is this:
Class MyMath
Public Shared PI As Double = CompPi()
Public Shared E As Double = CompE()
Private Shared Function CompPi() As Double
...
End Function
Public Shared Function CompE() As Double
...
End
Function Public Shared Function ToRadians(x As Double) As Double
...
End Function Public Shared Function Sin(x As Double) As Double
...
End Function Public Shared Function Cos(x As Double) As Double
...
End Function
Public Shared Function Tan(x As Double) As Double
...
End Function
End Class
Sample runs of the program:


In addition add a graph button that would open an new window that would allow you to plot the sine, cosine, and tangent.
Sample Run:

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
