[A83] Re: Symbolic Manipulation!!


[Prev][Next][Index][Thread]

[A83] Re: Symbolic Manipulation!!




something similar was done in a contest at Icarus.  It's not symbolic, but 
it is equation parsing.
http://icarus.ticalc.org/features/zpc_0418.html

-harper

At 07:26 AM 3/28/01 -0800, you wrote:

>well, not that I know something about it, but to me it would seem that it 
>would take the following logic to parse sqrt(1/x) - x^2:
>
>1 - locate the main functions, sqrt and x^2, one by one, split by either 
>plus or minus
>2 - check th "inner functions", those between braces,
>3 - if it is a function, parse it., else keep it
>4 - it it contains a / it is a division, so check if it is between to 
>blocks of braces, else take the first and last parameter, and display them 
>first above the second with a line between.
>5 - if it is the last in the series, go one up.
>6 - this is the sqrt, so display a square root sign "around" the previous 
>equation.
>7 - if there is another one in the series, continue.
>8 - parse x^2. go to the deepest level, x, display that, and go one level 
>up, the ^2, this is "to the second power", so display a 2 in superscript.
>
>9 - no next in the series, no level above this, so we're finished.
>
>more in general:
>
>parse equiatons one by one, split by a + or -.
>whithin each equation, go to the deepest level, and parse them from the 
>inside out. in a series (the +/- thing) and go to the next level when finished.
>
>you need to consider for youself if in the equation a/b "a" or "b" is the 
>deepst level.
>
>
>Hope I helped, I admit I wasn't very clear.
>
>-- peter martijn
>
>
>
>On Wed, 28 March 2001, Gabriel Hughes wrote:
>
> >
> >
> > Hey out there.  Has anyone read their mail and cared to answer me.  So far
> > I had only recieved one message and a reply to that message from someone
> > else and then nothing.  Can any of you out there help me?  I would really
> > apreciate it.  What I would need would either be a symbolic manipulator
> > or jus t help with the logic of one.  Thanks.
> >
> > -DG-
>
>-----------------------------------------------------
>Chaos is like Windows: just an alternative form
>of logic
>__________________________________________
>Get your free domain name and domain-based
>e-mail from Namezero.com
>New! Namezero Plus domains now available.
>Find out more at: http://www.namezero.com





References: