give me start

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2007
Posts: 52
Reputation: ajay_tabbu is an unknown quantity at this point 
Solved Threads: 0
ajay_tabbu's Avatar
ajay_tabbu ajay_tabbu is offline Offline
Junior Poster in Training

give me start

 
0
  #1
Mar 1st, 2007
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. plz help me so that i can write code by myself.

Example 1: http://www.sosmath.com/algebra/solve...9/s91/img1.gif

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



http://www.sosmath.com/algebra/solve...9/s91/img2.gif


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




The period of the sin http://www.sosmath.com/algebra/solve...9/s91/img9.gif function is http://www.sosmath.com/algebra/solve.../s91/img10.gif This means that the values will repeat every http://www.sosmath.com/algebra/solve.../s91/img11.gif radians in both directions. Therefore, the exact solutions are http://www.sosmath.com/algebra/solve.../s91/img12.gif and http://www.sosmath.com/algebra/solve.../s91/img13.gif where n is an integer. The approximate solutions are http://www.sosmath.com/algebra/solve.../s91/img14.gif and http://www.sosmath.com/algebra/solve.../s91/img15.gif where n is an integer.
note:this is one ex of trignometric eq.
Last edited by ajay_tabbu; Mar 1st, 2007 at 4:18 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 27
Reputation: mr.sweetchuck is an unknown quantity at this point 
Solved Threads: 1
mr.sweetchuck mr.sweetchuck is offline Offline
Light Poster

Re: give me start

 
0
  #2
Mar 1st, 2007
You need to import the java math package, (import java.lang.Math)

use the method sin(). It takes doubles.

Eg.
  1. double x = //something
  2. double answer = sin(x);
  3. answer = 2*answer - 1;
Nel sogni, come in amore, non ci sono cose impossible
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: give me start

 
0
  #3
Mar 1st, 2007
All of the methods you need are in the Math Class.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 1101 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC