Author Topic: SymPy  (Read 1348 times)

h4ck3rpr0n3

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3060
  • Reputation: 130
  • Developer, Genius :P :P
  • Badges:
  • Computers: HP Pavillion g7: Windows 7, BT5 R1, Ubuntu 12.04, Windows 8, Linux Mint
  • iDevices: ipod touch 3g, ipod touch 2g
SymPy
« on: October 18, 2011, 09:24:37 pm »
I'm going to port it so i can make an algebra and geometry calculator for my ipod haha.

SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python and does not require any external libraries.

Features

SymPy core capabilities include:

basic arithmetics *,/,+,-,**
basic simplification (like a*b*b + 2*b*a*b -> 3*a*b**2)
expansion (like (a+b)**2 -> a**2 + 2*a*b + b**2)
functions (exp, ln, ...)
complex numbers (like exp(I*x).expand(complex=True) -> cos(x)+I*sin(x))
differentiation
taylor (laurent) series
substitution (like x -> ln(x), or sin -> cos)
arbitrary precision integers, rationals and floats
noncommutative symbols
pattern matching
Then there are SymPy modules for these tasks:

more functions (sin, cos, tan, atan, asin, acos, factorial, zeta, legendre)
limits (like limit(x*log(x), x, 0) -> 0)
integration using extended Risch-Norman heuristic
polynomials (division, gcd, square free decomposition, groebner bases, factorization)
solvers (algebraic, difference and differential equations, and systems of equations)
symbolic matrices (determinants, LU decomposition...)
mpmath (multiprecision floating-point arithmetic)
geometric algebra (GA)
Pauli and Dirac algebra
quantum physics
geometry module
plotting (2D and 3D)
code generation (C, Fortran, LaTeX)
goals:
[] get developer status
[X] get 30+ karma
[X] get to hero member
[X] become part of the staff

languages i know:
JavaScript
CSS
HTML
PHP
C
C++
Cython
Python

ghoulmaster

  • Sr. Member
  • ****
  • Posts: 346
  • Reputation: 12
  • Badges:
Re: SymPy
« Reply #1 on: October 18, 2011, 10:28:14 pm »
very interesting... only thing that bothers me is that in the docs they say that d/dx tan(x) == tan^2(x) +1 where one could simply say sec^2(x)....

ghoulmaster

  • Sr. Member
  • ****
  • Posts: 346
  • Reputation: 12
  • Badges:
Re: SymPy
« Reply #2 on: October 18, 2011, 10:30:39 pm »
wait a second... why is this in the trash..

h4ck3rpr0n3

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3060
  • Reputation: 130
  • Developer, Genius :P :P
  • Badges:
  • Computers: HP Pavillion g7: Windows 7, BT5 R1, Ubuntu 12.04, Windows 8, Linux Mint
  • iDevices: ipod touch 3g, ipod touch 2g
Re: SymPy
« Reply #3 on: October 18, 2011, 10:32:31 pm »
because it didn't come with a config file and i hate messing with those haha.
goals:
[] get developer status
[X] get 30+ karma
[X] get to hero member
[X] become part of the staff

languages i know:
JavaScript
CSS
HTML
PHP
C
C++
Cython
Python

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: SymPy
« Reply #4 on: October 21, 2011, 06:32:41 am »
Its python so

Code: [Select]
python setup.py install

Don't like seeing ads? Click here to register!

h4ck3rpr0n3

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3060
  • Reputation: 130
  • Developer, Genius :P :P
  • Badges:
  • Computers: HP Pavillion g7: Windows 7, BT5 R1, Ubuntu 12.04, Windows 8, Linux Mint
  • iDevices: ipod touch 3g, ipod touch 2g
Re: SymPy
« Reply #5 on: October 21, 2011, 08:04:40 am »
oh yeah! haha wow, i guess it's back on!
goals:
[] get developer status
[X] get 30+ karma
[X] get to hero member
[X] become part of the staff

languages i know:
JavaScript
CSS
HTML
PHP
C
C++
Cython
Python

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: SymPy
« Reply #6 on: October 21, 2011, 08:24:31 pm »
SymPy is included with the AppStore python interpreter, PythonMath.

h4ck3rpr0n3

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3060
  • Reputation: 130
  • Developer, Genius :P :P
  • Badges:
  • Computers: HP Pavillion g7: Windows 7, BT5 R1, Ubuntu 12.04, Windows 8, Linux Mint
  • iDevices: ipod touch 3g, ipod touch 2g
Re: SymPy
« Reply #7 on: October 22, 2011, 02:18:27 pm »
really? oh well, guess porting it would be a waste of time then?
goals:
[] get developer status
[X] get 30+ karma
[X] get to hero member
[X] become part of the staff

languages i know:
JavaScript
CSS
HTML
PHP
C
C++
Cython
Python

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: SymPy
« Reply #8 on: October 22, 2011, 09:28:14 pm »
No... Im just saying it's possible.

h4ck3rpr0n3

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3060
  • Reputation: 130
  • Developer, Genius :P :P
  • Badges:
  • Computers: HP Pavillion g7: Windows 7, BT5 R1, Ubuntu 12.04, Windows 8, Linux Mint
  • iDevices: ipod touch 3g, ipod touch 2g
Re: SymPy
« Reply #9 on: October 22, 2011, 09:57:32 pm »
oh haha. alright, i'll get on it!
goals:
[] get developer status
[X] get 30+ karma
[X] get to hero member
[X] become part of the staff

languages i know:
JavaScript
CSS
HTML
PHP
C
C++
Cython
Python

Don't like seeing ads? Click here to register!