Questions tagged [symbolic-math]

Symbolic math tools allows for analytically process mathematical expressions - without the necessity of assigning specific numeric values to variables.

Common software that allows for symbolic math operations include

See this comparison of computer algebra systems (CAS) for other software packages that support symbolic math operations.

Online examples of Computer Algebra System

1493 questions
39
votes
6 answers

Introduction to computer algebra systems?

Does anybody know of any resources (books, classes, lecture notes, or anything) about the general theory of computer algebra systems (e.g. mathematica, sympy)? "Introductory" materials are preferred, but I realize that with such a specialized…
rz.
  • 19,861
  • 10
  • 54
  • 47
36
votes
3 answers

Difference between symbolic differentiation and automatic differentiation?

I just cannot seem to understand the difference. For me it looks like both just go through an expression and apply the chain rule.. What am I missing?
Moody
  • 1,297
  • 2
  • 12
  • 21
31
votes
3 answers

Haskell library like SymPy?

I need to manipulate expressions like 1 + sqrt(3) and do basic arithmetic like addition, subtraction, and division. I'd like the result to be in some sort of canonical form so that it can be used as a key in a map. Turning 1 + sqrt(3) into a float…
24
votes
5 answers

What is symbolic computation?

According to wiki: In mathematics and computer science, computer algebra, also called symbolic computation or algebraic computation is a scientific area that refers to the study and development of algorithms and software for manipulating…
Amumu
  • 17,924
  • 31
  • 84
  • 131
23
votes
4 answers

Symbolic Math in Julia?

I use Mathematica for symbolic math calculations. I am planning to switch to another language. Matlab (which I use for standard computation stuff) includes this feature but I am looking at the possibility of using Julia, since it seems to be the…
luchonacho
  • 6,759
  • 4
  • 35
  • 52
22
votes
10 answers

Derivatives in C/C++?

I have some expressions such as x^2+y^2 that I'd like to use for some math calculations. One of the things I'd like to do is to take partial derivatives of the expressions. So if f(x,y) = x^2 + y^2 then the partial of f with respect to x would be…
alanc10n
  • 4,897
  • 7
  • 36
  • 41
21
votes
7 answers

Symbolic Mathematics Python?

I am extreamly interested in math and programming and planning to start symbolic math project from scratch. Is this good project idea? Where to start? How should one approach this project? Any good resources? Thanks in advance.
Pratik Deoghare
  • 35,497
  • 30
  • 100
  • 146
19
votes
4 answers

C# library for algebra simplification and solving

There are quite a few algebra solvers and simplifiers on the web (for example, the decent one at algebra.com). However, I'm looking for something I can plug into C# as part of a larger project (I'm making my own calculator, but obviously I'd ask…
Dan W
  • 3,520
  • 7
  • 42
  • 69
18
votes
1 answer

Dealing with piecewise equations returned by sympy integrate

In sympy I have an integral which returns a Piecewise object, e.g. In [2]: from sympy.abc import x,y,z In [3]: test = exp(-x**2/z**2) In [4]: itest = integrate(test,(x,0,oo)) In [5]: itest Out[5]: ⎧ ___ …
15
votes
4 answers

How to find a function's rth derivative when r is symbolic in Mathematica?

I have a function f(t)=2/(2-t). It is not so hard to get the rth derivative at t=0 (i.e. 2^(-r)*r!) without using Mathematica. In the case of Mathematica calculation, I can get the r-th derivative when r=4 like this: D[2/(2-t), {t, 4}]. But how can…
jscoot
  • 2,019
  • 3
  • 24
  • 27
15
votes
5 answers

Reduce the number of operations on a simple expression

Lets say I take a computation that involves only addition and multiplication: (a+b)*(c+d) which can be done in many other ways, eg. a*(c+d) + b*(c+d) a*c + a*d + b*c + b*d In terms of additions and multiplications the number of operations required…
Hooked
  • 84,485
  • 43
  • 192
  • 261
15
votes
3 answers

Computer algebra for Clojure

Short version: I am interested in some Clojure code which will allow me to specify the transformations of x (e.g. permutations, rotations) under which the value of a function f(x) is invariant, so that I can efficiently generate a sequence of x's…
14
votes
2 answers

Factor/collect expression in Sympy

I have an equation like: R₂⋅V₁ + R₃⋅V₁ - R₃⋅V₂ i₁ = ───────────────────── R₁⋅R₂ + R₁⋅R₃ + R₂⋅R₃ defined and I'd like to split it into factors that include only single variable - in this case V1 and V2. So as a result I'd expect …
viraptor
  • 33,322
  • 10
  • 107
  • 191
14
votes
2 answers

Is there a vectorized way to calculate the gradient in sympy?

How does one calculate the (symbolic) gradient of a multivariate function in sympy? Obviously I could calculate separately the derivative for each variable, but is there a vectorized operation that does this? For…
Bitwise
  • 7,577
  • 6
  • 33
  • 50
13
votes
1 answer

How to simplify matrix expressions in SymPy?

Consider the following example import sympy as sy n = sy.symbols('n') A = sy.MatrixSymbol("A",n,n) B = sy.MatrixSymbol("B",n,n) C = sy.MatrixSymbol("C",n,n) M = A.inverse()*B.inverse() -…
sarasvati119
  • 162
  • 8
1
2 3
99 100