Results 1 to 3 of 3
Thread: New in Java Graphing
- 12-07-2011, 09:56 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
New in Java Graphing
good day...i am new in java and i have some difficulty in this problem of mine...i would like to graph the values of x and the resulting values of y for the following code of mine...
import java.lang.Math;
class Yint{
public double y;
public Yint(double y){
this.y=y;
}
double getY(){
return y;
}
}
class Solve{
public Yint[] yint;
public Solve(){
yint = new Yint[20];
for (int i=1; i<=15; i++){
yint[i] =new Yint(Math.pow((i-8), 2)+3);
System.out.print(" When x = "+i+" ; y = "+yint[i].getY()+".\n");
}
}
}
public class leccioiii {
public static void main(String[] args) {
new Solve();
}
}
hoping someone will help me, thank you
- 12-07-2011, 10:58 AM #2
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
Re: New in Java Graphing
can someone help me please? thank you
- 12-07-2011, 04:00 PM #3
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,619
- Rep Power
- 5
Re: New in Java Graphing
What is your question? Suggested reading
How To Ask Questions The Smart Way
And I highly recommend not bumping your threads - especially just an hour after you post. We are volunteers who do this for free in our spare time - expecting us to be online 24/7 at your beck and call can be considered both selfish and rude.
Similar Threads
-
Need help graphing
By rperalta in forum Java 2DReplies: 6Last Post: 09-24-2011, 05:59 PM -
Graphing GUI
By spyroth in forum NetBeansReplies: 3Last Post: 02-12-2011, 02:52 AM -
Scientific Graphing
By shruthi Nadiger in forum AWT / SwingReplies: 2Last Post: 03-14-2010, 11:37 PM -
Graphing in java
By collin389 in forum New To JavaReplies: 2Last Post: 01-18-2010, 01:54 AM -
Help with graphing problem
By adlb1300 in forum New To JavaReplies: 2Last Post: 11-26-2007, 02:50 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks