computer algebra packages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rahul

    #1

    computer algebra packages

    Hi.
    Well is there an open source computer algebra system written in python
    or at least having a python interface?
    I know of 2 efforts: pythonica and pyginac...are there any others?

    rahul

  • Kay Schluehr

    #2
    Re: computer algebra packages

    Rahul wrote:[color=blue]
    > Hi.
    > Well is there an open source computer algebra system written in python
    > or at least having a python interface?
    > I know of 2 efforts: pythonica and pyginac...are there any others?
    >
    > rahul[/color]

    Not in the moment. But I have a question to you: why do you seek for a
    CAS in Python? I ask this because I'm interested in such kind of stuff
    and secretly working on one, but this is highly experimental, a proof
    of the concept work and will probably not provide the amount of
    features/packages of a commercial CAS like Mathematica and Maple in a
    dozend years. There are also a couple of free CAS like Octave or Yacas,
    that do their job. Why do people ask periodically for a CAS in Python
    in this place? I'm just curious about it.

    Kay

    Comment

    • Rahul

      #3
      Re: computer algebra packages


      Hi.
      The reason is simple enough. I plan to do some academic research
      related to computer algebra for which i need some package which i can
      call as a library. Since i am not going to use the package
      myself..(rather my program will)..it will be helpful to have a python
      package since i wanted to write the thing in python. if none is
      available then probably i will need to work on an interface to some
      package written in some other language or work in that language itself.
      rahul
      Kay Schluehr wrote:[color=blue]
      > Rahul wrote:[color=green]
      > > Hi.
      > > Well is there an open source computer algebra system written in python
      > > or at least having a python interface?
      > > I know of 2 efforts: pythonica and pyginac...are there any others?
      > >
      > > rahul[/color]
      >
      > Not in the moment. But I have a question to you: why do you seek for a
      > CAS in Python? I ask this because I'm interested in such kind of stuff
      > and secretly working on one, but this is highly experimental, a proof
      > of the concept work and will probably not provide the amount of
      > features/packages of a commercial CAS like Mathematica and Maple in a
      > dozend years. There are also a couple of free CAS like Octave or Yacas,
      > that do their job. Why do people ask periodically for a CAS in Python
      > in this place? I'm just curious about it.
      >
      > Kay[/color]

      Comment

      • Fernando Perez

        #4
        Re: computer algebra packages

        Rahul wrote:
        [color=blue]
        >
        > Hi.
        > The reason is simple enough. I plan to do some academic research
        > related to computer algebra for which i need some package which i can
        > call as a library. Since i am not going to use the package
        > myself..(rather my program will)..it will be helpful to have a python
        > package since i wanted to write the thing in python. if none is
        > available then probably i will need to work on an interface to some
        > package written in some other language or work in that language itself.[/color]

        I've heard of people writing a Python MathLink interface to Mathematica, which
        essentially turns Mathematica into a Python module. But I don't have any
        references handy, sorry, and as far as I remember it was done as a private
        contract. But it's doable.

        Cheers,

        f

        Comment

        • David M. Cooke

          #5
          Re: computer algebra packages

          Fernando Perez <fperez.net@gma il.com> writes:
          [color=blue]
          > Rahul wrote:
          >[color=green]
          >> Hi.
          >> The reason is simple enough. I plan to do some academic research
          >> related to computer algebra for which i need some package which i can
          >> call as a library. Since i am not going to use the package
          >> myself..(rather my program will)..it will be helpful to have a python
          >> package since i wanted to write the thing in python. if none is
          >> available then probably i will need to work on an interface to some
          >> package written in some other language or work in that language itself.[/color]
          >
          > I've heard of people writing a Python MathLink interface to Mathematica, which
          > essentially turns Mathematica into a Python module. But I don't have any
          > references handy, sorry, and as far as I remember it was done as a private
          > contract. But it's doable.[/color]

          It should also be doable with Maple, using the OpenMaple API. I've
          looked at it, and it should be possible. I haven't had the time to
          actually do anything, though :-)

          --
          |>|\/|<
          /--------------------------------------------------------------------------\
          |David M. Cooke
          |cookedm(at)phy sics(dot)mcmast er(dot)ca

          Comment

          • Bill Mill

            #6
            Re: computer algebra packages

            On 6/8/05, Fernando Perez <fperez.net@gma il.com> wrote:[color=blue]
            > Rahul wrote:
            > [color=green]
            > >
            > > Hi.
            > > The reason is simple enough. I plan to do some academic research
            > > related to computer algebra for which i need some package which i can
            > > call as a library. Since i am not going to use the package
            > > myself..(rather my program will)..it will be helpful to have a python
            > > package since i wanted to write the thing in python. if none is
            > > available then probably i will need to work on an interface to some
            > > package written in some other language or work in that language itself.[/color]
            >
            > I've heard of people writing a Python MathLink interface to Mathematica, which
            > essentially turns Mathematica into a Python module. But I don't have any
            > references handy, sorry, and as far as I remember it was done as a private
            > contract. But it's doable.
            >[/color]

            What about http://library.wolfram.com/infocenter/MathSource/585/ ?
            Seems to be non-proprietary, or something different, but does it work?
            I don't have Mathematica, so I don't know.

            Peace
            Bill Mill
            bill.mill at gmail.com

            Comment

            • Fernando Perez

              #7
              Re: computer algebra packages

              Bill Mill wrote:
              [color=blue]
              > On 6/8/05, Fernando Perez <fperez.net@gma il.com> wrote:[color=green]
              >> Rahul wrote:
              >>[color=darkred]
              >> >
              >> > Hi.
              >> > The reason is simple enough. I plan to do some academic research
              >> > related to computer algebra for which i need some package which i can
              >> > call as a library. Since i am not going to use the package
              >> > myself..(rather my program will)..it will be helpful to have a python
              >> > package since i wanted to write the thing in python. if none is
              >> > available then probably i will need to work on an interface to some
              >> > package written in some other language or work in that language itself.[/color]
              >>
              >> I've heard of people writing a Python MathLink interface to Mathematica,
              >> which
              >> essentially turns Mathematica into a Python module. But I don't have any
              >> references handy, sorry, and as far as I remember it was done as a private
              >> contract. But it's doable.
              >>[/color]
              >
              > What about http://library.wolfram.com/infocenter/MathSource/585/ ?
              > Seems to be non-proprietary, or something different, but does it work?
              > I don't have Mathematica, so I don't know.[/color]

              Mmh, not very promising. I just downloaded it, and it looks pretty dated:

              PYML is a python interface to Mathematica which uses MathLink. It allows the
              Python programmer to evaluate Mathematica expressions. Expressions are
              passed to PYML as a Python object, which is processed into MathLink calls.
              PYML calls MathLink to evaluate the expression and prints the result.
              Currently, PYML supports Mathematica 2.2 and 3.0. The program is evolving
              continuously.

              given that Mathematica is at v5.1, this may or may not work. It's from 1998,
              has no setup.py, etc. It might still work, and if nothing else it would be a
              perfect starting point and a nice project to revive. But I don't have the
              time nor the need for this right now, perhaps the OP might want to play with
              it. Thanks for the reference though, I didn't know abou it.

              Best,

              f

              Comment

              • Florian Diesch

                #8
                Re: computer algebra packages

                Rahul <codedivine@gma il.com> wrote:[color=blue]
                > Well is there an open source computer algebra system written in python
                > or at least having a python interface?
                > I know of 2 efforts: pythonica and pyginac...are there any others?[/color]


                Probably this is usable for you (I never used any of them):


                Package: mascyma
                Description: A user-friendly frontend for MAXIMA
                Mascyma is (trying to be) a user-friendly graphical frontend for the Computer
                Algebra System GNU MAXIMA. It is written in Python and provides two GUIs,
                one of which based on PyGTK, the other based on wxPython.


                Package: maxima
                Description: A fairly complete computer algebra system-- base system
                This system MAXIMA is a COMMON LISP implementation due to William F.
                Schelter, and is based on the original implementation of Macsyma at
                MIT, as distributed by the Department of Energy. I now have
                permission from DOE to make derivative copies, and in particular to
                distribute it under the GNU public license.

                Comment

                • François Pinard

                  #9
                  Re: computer algebra packages

                  [Florian Diesch]
                  [color=blue]
                  > Probably this is usable for you (I never used any of them):[/color]
                  [color=blue]
                  > This system MAXIMA is [...] based on the original implementation of
                  > Macsyma at MIT [...][/color]

                  Wow! A derivative of Joel Moses' integrator!! I was not aware this
                  existed, so thanks for the pointer. It worked out of the box for me!
                  [color=blue]
                  > Description: A user-friendly frontend for MAXIMA
                  > Mascyma is (trying to be) a user-friendly graphical frontend for the Computer
                  > Algebra System GNU MAXIMA. It is written in Python and provides two GUIs,
                  > one of which based on PyGTK, the other based on wxPython.[/color]

                  I was not successful googling for this one. Would you have an URL handy?

                  --
                  François Pinard http://pinard.progiciels-bpi.ca

                  Comment

                  • François Pinard

                    #10
                    Re: computer algebra packages

                    > > Mascyma is (trying to be) a user-friendly graphical frontend for[color=blue][color=green]
                    > > the Computer Algebra System GNU MAXIMA.[/color][/color]
                    [color=blue]
                    > I was not successful googling for this one. Would you have an URL handy?[/color]

                    Oops, OK! Found it at http://cens.ioc.ee/~pearu/misc/maxima/ .

                    --
                    François Pinard http://pinard.progiciels-bpi.ca

                    Comment

                    • Robert Kern

                      #11
                      Re: computer algebra packages

                      François Pinard wrote:[color=blue]
                      > [Florian Diesch][/color]
                      [color=blue][color=green]
                      >>Description : A user-friendly frontend for MAXIMA
                      >> Mascyma is (trying to be) a user-friendly graphical frontend for the Computer
                      >> Algebra System GNU MAXIMA. It is written in Python and provides two GUIs,
                      >> one of which based on PyGTK, the other based on wxPython.[/color]
                      >
                      > I was not successful googling for this one. Would you have an URL handy?[/color]

                      Note the deliberate spelling, and cut-and-paste.



                      --
                      Robert Kern
                      rkern@ucsd.edu

                      "In the fields of hell where the grass grows high
                      Are the graves of dreams allowed to die."
                      -- Richard Harter

                      Comment

                      • François Pinard

                        #12
                        Re: computer algebra packages

                        [Robert Kern][color=blue]
                        > François Pinard wrote:[color=green]
                        > > [Florian Diesch][/color][/color]
                        [color=blue][color=green][color=darkred]
                        > >> Mascyma is (trying to be) a user-friendly graphical frontend for
                        > >> the Computer Algebra System GNU MAXIMA. It is written in Python
                        > >> and provides two GUIs, one of which based on PyGTK, the other based
                        > >> on wxPython.[/color][/color][/color]
                        [color=blue][color=green]
                        > > I was not successful googling for this one. Would you have an URL handy?[/color][/color]
                        [color=blue]
                        > Note the deliberate spelling, and cut-and-paste.[/color]

                        Thanks. The `Mascyma' versus `Macsyma' subtlety escaped my scrutiny :-).
                        [color=blue]
                        > http://home.arcor.de/mulk/projects/m...index.xhtml.de[/color]

                        Their CVS server (the only download choice) is not responding. So I'll
                        forget "Mascyma" for now. Maxima does work, that's a lot already! :-) I
                        perused what I could find about Python on algebra or symbolic calculus,
                        and nothing I saw, so far, stands even a pale comparison with Maxima.

                        --
                        François Pinard http://pinard.progiciels-bpi.ca

                        Comment

                        • Bengt Richter

                          #13
                          Re: computer algebra packages

                          On Sun, 10 Jul 2005 13:12:21 -0400, =?iso-8859-1?Q?Fran=E7ois? = Pinard <pinard@iro.umo ntreal.ca> wrote:
                          [color=blue]
                          >[Florian Diesch]
                          >[color=green]
                          >> Probably this is usable for you (I never used any of them):[/color]
                          >[color=green]
                          >> This system MAXIMA is [...] based on the original implementation of
                          >> Macsyma at MIT [...][/color]
                          >
                          >Wow! A derivative of Joel Moses' integrator!! I was not aware this
                          >existed, so thanks for the pointer. It worked out of the box for me!
                          >[color=green]
                          >> Description: A user-friendly frontend for MAXIMA
                          >> Mascyma is (trying to be) a user-friendly graphical frontend for the Computer
                          >> Algebra System GNU MAXIMA. It is written in Python and provides two GUIs,
                          >> one of which based on PyGTK, the other based on wxPython.[/color]
                          >
                          >I was not successful googling for this one. Would you have an URL handy?
                          >[/color]
                          I also found



                          by googling for "A user-friendly frontend for MAXIMA"

                          (I find that quoting a whole phrase that is likely to be repeated in
                          docs and in references often finds stuff)

                          Then googling for mascsyma [sic ;-)] got


                          leading to screenshots at


                          No idea what the status of all that is, but looks nice.

                          Regards,
                          Bengt Richter

                          Comment

                          • Robert Kern

                            #14
                            Re: computer algebra packages

                            Bengt Richter wrote:
                            [color=blue]
                            > Then googling for mascsyma [sic ;-)] got[/color]

                            I doubt it. ;-)

                            --
                            Robert Kern
                            rkern@ucsd.edu

                            "In the fields of hell where the grass grows high
                            Are the graves of dreams allowed to die."
                            -- Richard Harter

                            Comment

                            • Bengt Richter

                              #15
                              Re: computer algebra packages

                              On Sun, 10 Jul 2005 15:53:22 -0700, Robert Kern <rkern@ucsd.edu > wrote:
                              [color=blue]
                              >Bengt Richter wrote:
                              >[color=green]
                              >> Then googling for mascsyma [sic ;-)] got[/color][/color]
                              Dang, and I put "[sic]" too. IOW, 'macsyma'.repla ce('cs','sc')[color=blue]
                              >
                              >I doubt it. ;-)
                              >[/color]
                              Rightly ;-/ Fingers think they know spelling better than I do ;-/

                              Regards,
                              Bengt Richter

                              Comment

                              Working...