That's  true but it's not that difficult to create a grammar for each case.
I was hoping there would be some utilities to facilitate making it and
parsing it.

Yes, it seems I can use the Arithmetic_Evaluation of rosettacode.

Thanks.


On Thu, Aug 1, 2013 at 8:04 PM, Raul Miller <[email protected]> wrote:

> It's probably worth noting that there are a lot of different rules for
> interpreting symbolic notation. (The meanings of those symbols can vary
> widely, depending on context.)
>
> For example, compare the notation on these pages with whatever you are
> working with:
> http://en.wikipedia.org/wiki/Laplace_operator
> http://en.wikipedia.org/wiki/Semigroup_with_involution
> http://en.wikipedia.org/wiki/Composition_of_relations
> http://en.wikipedia.org/wiki/Hadamard_product_(matrices)
> http://en.wikipedia.org/wiki/Gram_matrix
> http://en.wikipedia.org/wiki/Sesquilinear_form
> http://en.wikipedia.org/wiki/Maxwell%E2%80%93Stefan_diffusion
>
> That said, this might interest you:
> http://rosettacode.org/wiki/Arithmetic_evaluation#J
>
> Thanks,
>
> --
> Raul
>
>
> On Thu, Aug 1, 2013 at 12:40 PM, EelVex <[email protected]> wrote:
>
> > Hi bob,
> > that's the problem (I think I was not clear): I want to read the output
> > from another program that makes symbolic calculations and I don't want to
> > have to read huge expressions just to parenthesise them correctly.
> >
> >
> > On Thu, Aug 1, 2013 at 7:31 PM, bob therriault <[email protected]
> > >wrote:
> >
> > > Hi Eelvex,
> > >
> > > I think that the monadic primitive Do (".) may be the answer, although
> > you
> > > would need to use parenthesis to get the order of execution that you
> > would
> > > like.
> > >
> > >    a=.2
> > >    b=.3
> > >    ".'a*b+b*a'
> > > 18
> > >    ".'(a*b)+b*a'
> > > 12
> > >
> > > Cheers, bob
> > >
> > > On 2013-08-01, at 9:22 AM, EelVex wrote:
> > >
> > > > Is there a verb in the library to read "paper math" into J
> expressions?
> > > >
> > > > Eg.
> > > >   a =: 2
> > > >   b =: 3
> > > >   read 'a * b + b * a'
> > > > 12
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > >
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to