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

More efficient alternatives to eval function in matlab (or how to print in 3d without previous evaluation)

I want to print this function: f=cos(q1+q2) I set the range of both q1 and q2 like this: q1=-pi:0.01:pi q1=-pi:0.01:pi then, to use mesh (it's not that I like this function,is the only one I found) I have to: 1)create a meshgrid for x and…
user1834153
  • 330
  • 5
  • 20
0
votes
0 answers

substituting a numeric vector with symbolic defined function in MATLAB

I've got this problem to solve for a very long time,and unfortunately ,still couldn't find a proper answer for it.and here is the problem: I have this piece of code which is producing a string with 'syms' function and requesting from user to enter…
MR Meyqani
  • 25
  • 7
0
votes
1 answer

how differentiate symbolic function has a variable name matlab

please, I want matlab to generate dynamic variable name as many as specified number ex, generate F1,F2,... but the problem that I want to differienate the unspeceified number I use for k = 1:number eval(diff(['F', num2str(k)])) end so what's…
0
votes
1 answer

Polynomial expansion: Separating polynomial coefficients and x's

I want to automatically calculate expansions of polynomials where there are variables (x1,x2,...) as well as coefficients (c1,c2, ...). My goal is to calculate p(1)*(c1*x1+c2*x2+...)^n+ ... + p(n)*(c1*x1+c2*x2+...)^n . As you can notice the…
jkt
  • 2,538
  • 3
  • 26
  • 28
0
votes
1 answer

simplifying a symbolic expression in Mathematica

I have the following problem. Defining two simple functions in Mathematica, say, foo[x_]:= x, and bar[y_]:=y, I would expect that the expression foo[x]^(-bar[y])-(1/foo[x])^(bar[y]) will be evaluated to zero. However, I find (oddly) that Mathematica…
Simon Righley
  • 4,538
  • 6
  • 26
  • 33
0
votes
1 answer

Matlab solving digamma function

I am trying to solve a function in Matlab: digamma(x) - log(x/5) = 0 I tried sol = solve(psi(x)-log(x/5),x), but the digamma function psi is not compatible with the solve function. Is there any way to solve this problem?
0
votes
3 answers

How to define n symbolic variables in Matlab?

I want to define n symbolic variables in Matlab. For example, if the user enters n=3 then compiler defines x1, x2, x3 as symbolic variables (the range of n is unlimited). How can I do this by for loop?
user2987710
  • 11
  • 1
  • 4
0
votes
2 answers

Trigonometric functions in symbolic tolbox MATLAB

I am trying to solve a system of two equations that contain trigonometric equations in Matlab using the Symbolic toolbox My equations are: syms Xb Xg L X2 X1 theta costheta Yb Yg - Xb + Xg + X2 * cos(theta) + L* cos(theta + X1) == 0 - Yb + Yg + X2…
Spyros
  • 289
  • 1
  • 6
  • 20
0
votes
1 answer

MATLAB: (Good Ol') Error in MuPAD command

I know many a question like this has been asked before, but the cases that I've seen are more complicated (i.e. I don't understand them) and the answers seem to pertain only to the specific cases. My case is very simple (and thus broadly…
bongbang
  • 1,610
  • 4
  • 18
  • 34
0
votes
1 answer

Matlab: Solving Symbolic System of Linear Equations with Interpolation functions

I've been trying to solve a system of linear equations, with some variables being interpolated functions of other variables. I've tried turning these functions into symbolic functions, but that doesn't seem to work. Does anybody have a workaround…
0
votes
2 answers

Symbolic Summation in Matlab using symsum

In matlab, I implemented the sum of series (x^k) / (2*k) when k is from 1 to 6, as following: syms x; syms k real; symsum(x^k/(2*k), k, 1, 6) The above sum has only one symbolic variable (x). Now I want to implement the following sum in Matlab…
ManiAm
  • 1,759
  • 5
  • 24
  • 43
0
votes
1 answer

Rendering clickable mathematics on Android

I'm trying to create an Android app for visually manipulating algebra. Is there any library I could use that would render selectable, as in clickable, algebra? The ideal library would take some symbolic algebra, e.g. in MathML form, render it…
dataduck
  • 588
  • 4
  • 14
0
votes
1 answer

Simplify behavior on symbolic expression with limit

I want to simplify this symbolic expression, and then take the limit of it (this is not too hard on a paper) using Matlab syms n x sn = 8^n * n^2 * (sin(x))^(3*n) simplify(sn^(1/n)) which results in ans = 8*n^(2/n)*(sin(x)^(3*n))^(1/n) This must…
Pavel Sapehin
  • 988
  • 12
  • 23
0
votes
1 answer

convert nonlinear symbolic equations to matrix in matlab

I know how to convert linear equations to matrix by using equationstomatrix function syms x y z; [A, b] = equationsToMatrix([x + y - 2*z == 0, x + y + z == 1, 2*y - z + 5 == 0], [x, y, z]) %solution of the equation set A = [ 1, 1, -2] [ 1, 1, …
0
votes
2 answers

substituting numerical values in symbolic Maple Vector

I downloaded a Maple proc which returns a Vector (say, v) of expressions and where each individual expression is in terms of other Vectors (p, a) with symbolic entries. For example: > v := myProc(); > v[1]; p[2] + a[1] > v[2]; p[5] + a[3] +…