Math expression display
jhurley at infostations.com
Tue May 4 12:48:59 CDT 2004
>Date: Mon, 3 May 2004 15:40:51 -0700 (PDT)
>From: Mary McEwen <marym84058 at yahoo.com>
>Subject: Math expression display
>To: use-revolution at lists.runrev.com
>Message-ID: <20040503224051.69626.qmail at web14203.mail.yahoo.com>
>Content-Type: text/plain; charset=us-ascii
>Is there a library in existence for revolution that 'pretty prints'
>mathematical expressions in the standard way that you would see them
>printed in a book, rather than the 'one line' computer format? For
>example you would see the expression:
>((x^2 + 2x + 1) /(x + 1))^3 printed as a rational polynomial
>raised to a power, with the numerator above the denominator, and the
>exponent above and to the right of the numerator, outside of the
>I have searched the archives and found very little other than a Feb
>14 2002 post about a SmoothTalk Library, whose link is no longer
It may be some time before an equation editor is available in RR.
Until that time there is a work-around if you're not too fussy.
RR can do super and sub scripts--see the "text" menu.
You can write
x^2 + 2x + 1
f(x) = ------------
(x + 1)^3
Where you would instead use the "Text" menu to do the superscripting.
And the dotted line would be replaced with solid line drawn using the
line tool in RR. It is certainly quite readable. (You would have to
worry about the user's fonts however. The spacing would depend on the
If you have a lot of surds, you might want to check out the "Typing
superscript and subscripts" stack on my web site. You could type the
equation as you see it above, and it would be parsed to give you the
appropriate result--except, of course, for the solid line to replace
the dotted line.
More information about the use-livecode