hello friend
i want to make java program to slove trigomeric eq but i dont know how to stare as i m new in java i don't 9 how trigomeric eq can slove bye java can u tell me how i should thikg logicaly i need u r logical help so i can write my code with help that logic.:sad: plz help me so that i can write code by myself.

Example 1: [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img1.gif[/IMG]

There are an infinite number of solutions to this problem. To solve for x, you must first isolate the sine term.


We know that the [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img3.gif[/IMG]therefore [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img4.gif[/IMG] The sine function is positive in quadrants I and II. The [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img5.gif[/IMG]is also equal to [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img6.gif[/IMG] Therefore, two of the solutions to the problem are [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img7.gif[/IMG] and [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img8.gif[/IMG]

The period of the sin [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img9.gif[/IMG] function is [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img10.gif[/IMG] This means that the values will repeat every [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img11.gif[/IMG] radians in both directions. Therefore, the exact solutions are [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img12.gif[/IMG] and [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img13.gif[/IMG] where n is an integer. The approximate solutions are [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img14.gif[/IMG] and [IMG]http://www.sosmath.com/algebra/solve/solve9/s91/img15.gif[/IMG] where n is an integer.
note:this is one ex of trignometric eq.

11 Years
Discussion Span
Last Post by masijade

You need to import the java math package, (import java.lang.Math)

use the method sin(). It takes doubles.


double x = //something
double answer = sin(x);
answer = 2*answer - 1;
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.