Results 1 to 6 of 6
Thread: Output Equations in Java
 10262010, 10:17 PM #1Member
 Join Date
 Oct 2010
 Posts
 2
 Rep Power
 0
Output Equations in Java
Hello,
I was wondering if anyone knew of a library that could take an equation like
Java Code:x = (b + (b^24ac)^(1/2))/2
And turned it into something like:
Preferably I would not like the output to be an image, but an image output is fine. I just wanted to check if something like this exists before I start coding it myself.
Thanks
 10282010, 10:27 PM #2Member
 Join Date
 Oct 2010
 Posts
 2
 Rep Power
 0
Would this be a better placed question somewhere else?
 11022010, 01:23 PM #3Member
 Join Date
 Oct 2010
 Posts
 11
 Rep Power
 0
hey,
first.I can't help you.But what do you want to achieve.That the parameters in this new Form will be valuable themselfs? If you know what i mean?
 11022010, 01:33 PM #4
 Join Date
 Jul 2007
 Location
 Colombo, Sri Lanka
 Posts
 11,370
 Blog Entries
 1
 Rep Power
 21
There are some packages in Java, that you can draw equations, graphs, shapes, etc.. Search on Google.
David J. Eck
 11022010, 03:17 PM #5
 Join Date
 Sep 2008
 Location
 Voorschoten, the Netherlands
 Posts
 14,131
 Blog Entries
 7
 Rep Power
 24
I once generated html version 3.2. tags from an infix expression (there's a little thread about it in the AWT/Swing forum). First the infix expression was parsed to its abstract syntax tree; a visitor would visit all the nodes (where the nodes would tell the visitor their type of node) and html code was generated. It turned out a bit of a mess because html 3.2 isn't well suited to mark up mathematical expressions. Here's an example: the expression:
Java Code:((b + sqrt(b**24*a*c))/2*a)
Java Code:b + b 2 ** 4 a * c *  sqrt + 2 / a *
Java Code:(<i>b</i>+<font color="#cc"><b>√</b></font>(<i>b</i><sup><font color="#8000">2</font></sup>−<font color="#8000">4</font>· <i>a</i>·<i>c</i>)) ⁄ <font color="#8000">2</font>·<i>a</i>
kind regards,
Jos
 11022010, 04:24 PM #6Moderator
 Join Date
 Apr 2009
 Posts
 12,523
 Rep Power
 21
Similar Threads

linear systems of equations
By tyang in forum New To JavaReplies: 2Last Post: 03242010, 04:13 PM 
Finding the intercept using two equations.
By MapleLeafRag in forum New To JavaReplies: 1Last Post: 12032009, 09:32 PM 
Java, output string, getting correct output? HELP!
By computerboyo in forum New To JavaReplies: 2Last Post: 02262009, 12:44 AM 
Solving this equations problem in Java
By matt_well in forum New To JavaReplies: 17Last Post: 08302008, 09:05 PM 
equations
By Peter in forum New To JavaReplies: 2Last Post: 07042007, 06:15 AM
Bookmarks