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
-1
votes
1 answer

How can I represent any negative value mathematically using summation?

For example, I know that I can represent the value -1 in this way, where "n" is the bit size of the type, n-1 is the most significant bit, and the value -2, which gives the complement representation of 2, plus the sum of the sum described below,…
-1
votes
1 answer

Updating variables with sympy

I have a problem with sympy where it won't update my values. So I'm trying to do an iterative method for solving $\sigma_x$ and when I try to put numerical values into my expression it won't update. I have imported sympy as sy So I first have this…
Lopehert
  • 37
  • 5
-1
votes
1 answer

MATLAB collect terms with common denominator

I'm writing some MATLAB code that gives a symbolic equation. The equation has a number of fractional terms where the denominators are different functions. I would like to group the terms with the same denominator. To give an example of what I'm…
-1
votes
1 answer

Compare two symbolic expressions

I have two symbolic expressions a and b, each consists of polynomials with basic arithmetic and small, positive, integer powers. simplify(a - b) doesn't go up to 0, and my only alternative is to subs some random numbers into the variables and…
Zohar Levi
  • 614
  • 6
  • 16
-1
votes
1 answer

Derivate using chain rule doesn't work in MATLAB

I am trying to derive the gradient and hessian for a given function. When i directly do the gradient it works well but when I apply chain rule it doesn't works and throws me an error as below Error using sym/diff (line 70) Second argument must be a…
mkpisk
  • 152
  • 1
  • 9
-1
votes
1 answer

mathematica code that is not working according to wanted expression

enter image description here I failed to do the following expression and make it give accurate results if any one can help me I will be glade. I attached my expression in a pic "want this" and my trial as "my trial". the correct answer must equal…
-1
votes
1 answer

Simple Polynomial Differentiator without external libraries

I'm trying to make a polynomial Differentiator without the use of external libraries like sympy and numpy, these are the test cases: "3 + 1x + 2x^2" ==> "1 + 4x" "1 + 2x + -3x^2 + 17x^17 + -1x^107" ==> "2 + -6x + 289x^16 + -107x^106" "17x + 1x^2"…
user13392187
-1
votes
1 answer

How can I calculate int(exp(sin(x)),x) in MATLAB

There's a warning when I tried to do an integration with MATLAB! syms z int(exp(sin(z)),z) Warning: Explicit integral could not be found.
-1
votes
3 answers

Extract complete argument and function name(s) from the Expression, (standard mathematical functions only) MAPLE

For expressions like a1 := sin(1+a/b); a2 := log(1+ a*b); a3 := abs(a^2+b); how can I get expressions of respective functions. For example someCommand(a1) # should get an output 1+a/b someCommand(a2) # should get an output 1+a*b someCommand(a3) …
Rohithsai Sai
  • 468
  • 4
  • 17
-1
votes
1 answer

Symbolic Variable Substitution: Python

I wish to find the value of the given equation by substituting the value of the symbolic variable 'x'. However, the output still contains the variable: import math from sympy import * m = var ('x') x = m i = 1 while i <= 100: m = sin(m) i…
-1
votes
1 answer

Simplify solution for Symbolic solver for system of equations in Python (with symbolic output)

I have the following system of equations : -2yz = a -2xy = b -x^2 + y^2 - z^2 = c How can I simplify the solution for these equations using SymPy? x, y, z are unknowns. I have the following script: from sympy import * x, y, z = var('x y z') a, b,…
QuestionMark
  • 412
  • 1
  • 4
  • 16
-1
votes
1 answer

How to use maple to simplify trig expressions involving arccos and cos?

I'm having trouble convincing maple to simplify a complicated trig expression. It appears the bottleneck is that I don't know how to tell maple that it's OK to simplify expressions like: arccos(cos(x)) into x Instead, if I…
Alec Jacobson
  • 6,032
  • 5
  • 51
  • 88
-1
votes
1 answer

Use the content of a cell as a label of a symbolic variable

Can I do the following idea in Matlab command? Assuming that a = 'c1Tl'; class(a) will return cell. How I can use the content of an as a cell variable which I can do c1Tl = 3; I try to use sym(a) = 3; to assign a variable to the content of 'a'…
Karim
  • 252
  • 1
  • 4
  • 17
-1
votes
2 answers

How can I solve an implicit equation without the symbolic toolbox?

I have an equation like this: (5+x)^2/15+(x-4)^2/10=100 Can MATLAB solve this equation directly, without having access to the symbolic toolbox? If it can not do this, how can I resolve this problem?
voo
  • 9
  • 6
-1
votes
1 answer

How can I optimize my code?

I have an equation which includes continued fraction. I want to find particular root of this equation for all R which is a parameter of the equation. For this I: input this continued fraction as a polynomial expression into MATLAB simplify this…