By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,766 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,766 IT Pros & Developers. It's quick & easy.

cas in python

P: n/a
Hello,
from time to time, people here are asking about the computer algebra
system (cas) in python. I wonder, is there a demand for such a thing?

I would be interested in functionality of at least ginac, but
something, which could easily be extended. Ginac (pyginac or swiginac)
are fine, but it seems to me to be too complex and contains a lot of
redundant code (imho). What I need is not a speed in the first place,
but rather rich features and simple code which I (and others) can
extend. I would like to experiment with new features, functions, etc.,
but using a normal language like python (or c++). Which is quite
difficult in ginac or maple/mathematica.

I also (like other people here) wrote a proof of concept a year ago:

http://ondrej.certik.cz/cas.php

and I also (like others) don't have much time to continue on it. On the
other hand, it really does seem possible to write it in a way, which is
very easy to understand, yet feature rich.

So if anyone is interested in developing such a thing, please let me
know. Or at least what you think about it - does it make sense to write
another cas?

Ondrej

Jul 5 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
import ctypes
ctypes.cdll.find('ginac')

i like designing APIs, and i'm up for learning ctypes, so i'll help
wrap ginac using ctypes.

on***********@gmail.com wrote:
Hello,
from time to time, people here are asking about the computer algebra
system (cas) in python. I wonder, is there a demand for such a thing?

I would be interested in functionality of at least ginac, but
something, which could easily be extended. Ginac (pyginac or swiginac)
are fine, but it seems to me to be too complex and contains a lot of
redundant code (imho). What I need is not a speed in the first place,
but rather rich features and simple code which I (and others) can
extend. I would like to experiment with new features, functions, etc.,
but using a normal language like python (or c++). Which is quite
difficult in ginac or maple/mathematica.

I also (like other people here) wrote a proof of concept a year ago:

http://ondrej.certik.cz/cas.php

and I also (like others) don't have much time to continue on it. On the
other hand, it really does seem possible to write it in a way, which is
very easy to understand, yet feature rich.

So if anyone is interested in developing such a thing, please let me
know. Or at least what you think about it - does it make sense to write
another cas?

Ondrej
Jul 5 '06 #2

P: n/a
ginac already has two separate bindings, pyginac and swiginac.
O.

faulkner wrote:
import ctypes
ctypes.cdll.find('ginac')

i like designing APIs, and i'm up for learning ctypes, so i'll help
wrap ginac using ctypes.

on***********@gmail.com wrote:
Hello,
from time to time, people here are asking about the computer algebra
system (cas) in python. I wonder, is there a demand for such a thing?

I would be interested in functionality of at least ginac, but
something, which could easily be extended. Ginac (pyginac or swiginac)
are fine, but it seems to me to be too complex and contains a lot of
redundant code (imho). What I need is not a speed in the first place,
but rather rich features and simple code which I (and others) can
extend. I would like to experiment with new features, functions, etc.,
but using a normal language like python (or c++). Which is quite
difficult in ginac or maple/mathematica.

I also (like other people here) wrote a proof of concept a year ago:

http://ondrej.certik.cz/cas.php

and I also (like others) don't have much time to continue on it. On the
other hand, it really does seem possible to write it in a way, which is
very easy to understand, yet feature rich.

So if anyone is interested in developing such a thing, please let me
know. Or at least what you think about it - does it make sense to write
another cas?

Ondrej
Jul 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.