how do i graph a function in java ? can anyone give me a basic source code to graph a function in java And which IDE is preferred for doing so?
The IDE should be irrelevant for this matter. Use whatever (Java) IDE you find most comfortable with.
Do you want to write everything from scratch, or are you willing to use some code others have written ("libraries")?
it will be better if i write it myself by using some ideas that are used to do this
why?
maybe i wont get the code ? but anyways code will work
What do you mean "I won't get the code"? You won't understand it or you won't obtain it?
i mean i wont understand it
There won't be any code involved; you just be calling someone else's code without necessarily knowing what's inside. Like, for example, you do when you call string.contains(...)
try jfreechart; it'll handle all the complicated drawing stuff for you, so you can concentrate on feeding it the function. If you have your app running with jfreechart but you want to do the plotting part yourself, you can then decide whether you want to replace the jfreechart part with your own. But I think you are a beginner, and you should try to find the easiest way to do things, and the easiest way is to use what somebody else has already written. Learning how to use a library is an important step for a programmer; may as well start now, when you have an actual reason. http://www.jfree.org/jfreechart/
you are right i just started programming from this semester, and we haven't used library so this will be great.ThankYou
(unless the assignment tells you to do it all yourself, of course)
Join our real-time social learning platform and learn together with your friends!