[sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-26 Thread Jonathan
@rjf, As much as possible I am trying to avoid reinventing the wheel. I have not even really written a parser. All I have done is extended the parser already written in SymPy to understand algebraic equalities that have both a lhs and a rhs. By leveraging what the SymPy team has done I got

Re: [sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-26 Thread Dima Pasechnik
On Mon, May 25, 2020 at 11:39 PM rjf wrote: > > It looks like you have written a recursive descent parser. And a display. > If you were running Maxima on a Pi, (see sourceforge for download) > you would have a parser and a display without writing it yourself. > > Just looking at the code

[sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-25 Thread rjf
It looks like you have written a recursive descent parser. And a display. If you were running Maxima on a Pi, (see sourceforge for download) you would have a parser and a display without writing it yourself. Just looking at the code briefly, I think you have to decide if you actually meet your

[sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-25 Thread Jonathan
As promised here is a git repository with a myBinder demonstration of what I have so far. Once I extend it to handling inequalities, it will more than meet my use case needs. Some have asked for more specifics. Here is a list of some of the more

Re: [sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-25 Thread rjf
You haven't provided enough information about your environment, but it is generally feasible to acquire data in Maxima from a file or a socket or a stream. Or compute numerical stuff, generate random numbers, read from a keyboard, web page...etc. Given that you are familiar with a particular

Re: [sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-24 Thread Jonathan
Although a good idea, I don't think I can make it simple enough to set up inside a data acquisition environment that depends on Python. This would require installing Maxima and all the connector software. The people using this are unlikely to do anything that requires more than a `pip

Re: [sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-24 Thread rjf
It seems to me that the obvious thing is not to extract parts from SageMath, but just use Maxima, which is a part, but also an entire symbolic math system, Your example looks like this: ( assignment is ":" equations use "=". a command is terminated by ";" ) eq1 : p*V = n*r*t ; eq1/V;

Re: [sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-22 Thread Samuel Lelievre
Le samedi 23 mai 2020 02:14:58 UTC+2, Dima: > > Conda does have Sagemath available. > Not 100% sure how it works on Windows, though. One can install SageMath from Conda on Linux and macOS. Not on Windows. -- You received this message because you are subscribed to the Google Groups "sage-devel"

Re: [sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-22 Thread dimpase
On Fri, May 22, 2020 at 04:07:47PM -0700, Jonathan wrote: > Emmanuel, > > Thanks, that is one of the places I was starting. It turns out that doesn't > quite pick up the necessary stuff from the `Expr` type. I have had better > luck extending the base type `Expr`. It was not hard to get the

[sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-22 Thread Jonathan
Emmanuel, Thanks, that is one of the places I was starting. It turns out that doesn't quite pick up the necessary stuff from the `Expr` type. I have had better luck extending the base type `Expr`. It was not hard to get the arithmetic parts (+, -, /,*, pow) working. I'm still looking

[sage-devel] Re: Could someone point me to the code that supports math on symbolic equations?

2020-05-22 Thread Emmanuel Charpentier
Well, you might consider working on the expressions -. A quick test with Sympy: Python 3.8.3 (default, May 14 2020, 11:03:12) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> python.el: native completion setup loaded >>> from sympy import * >>>