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

DSolve with conditions in Mathematica

I would like to solve this equation in Mathematica : DSolve[{p'[r] == 1/((r^2)*(((R - S)/(R^3)) - (1/(r^2)*(1 - S/r)))^(1/2))}, p[r], r] but I have some supplementary conditions: S is a strictly positive real R > 3*sqrt(3)*S/2 I want the solution…
Vincent
  • 57,703
  • 61
  • 205
  • 388
0
votes
0 answers

Not able to get minima of function using symbolic math toolbox

I am trying to calculate minima of one energy function with variable t using Symbolic Math toolbox of Matlab. Here is the code where I am facing the problem. In order to check whether there is minima or maxima, I am also plotting the energy.…
0
votes
1 answer

Matlab Subplot of symbolic functions (with quite different range and domain), Want to achieve same axis scale for every subplot

I have 3 subplots in Matlab, each curve has quite different domain and range. I wish to have the same scale of (1 unit = 1 cm of paper) in x and y axes of all the graphs. I cannot use linkprop for xlim or ylim, as the domain and range is quite…
Porcupine
  • 5,885
  • 2
  • 19
  • 28
0
votes
0 answers

how to solve two equal symbolic equations in matlab

I define a symbol something like that VA = sym('VA'); VB = sym('VB'); after some calculations, i get VB = somenumbers*VA + someother numbers; then , I got this result's backup and keep VBbackup and again after some calculations VB becomes…
a-f-a
  • 147
  • 1
  • 3
  • 9
0
votes
1 answer

Sympy type symbols to Python code

I am trying to manipulate variables in sympy, so that after I can input them into a Python function which requires the input to be “normal” Python code. For example: I would like to input (where x is a sympy symbol): y = x**3 + x**2 + 3*x +5 Then,…
Kratos
  • 51
  • 1
  • 6
0
votes
1 answer

MuPAD: How to determine just the existence of solutions to a set of linear inequalities?

Using MuPAD, I want to find out if at least one solution exists for a set of of linear inequalities. For example, the following system of linear inequalities: which I solve in MuPAD by: solve({x+z>2*y,z>y,2*z>2*x,x>0,y>0,z>0},{x,y,z} and MuPAD…
edison1093
  • 23
  • 6
0
votes
3 answers

What's wrong this code in Matlab: numeric::solve(x^6 - PI*x^2 = sin(3), x)

I'm new to Matlab and I'm attempting to use it to solve equations numerically. I consulted the Matlab documentation, found the following code: numeric::solve(x^6 - PI*x^2 = sin(3), x) I tried to execute it, but Matlab says: numeric::solve(x^6 -…
user3323258
  • 71
  • 1
  • 2
  • 7
0
votes
1 answer

If the input expression contains a symbolic variable, use the VPA function instead?

Im tring to substract the diagonal values with eigval and store the new value in the matrix Diagonal: CovarianceMatrix=[8 -3 1;2 1 0;3 4 5]; Col=3; Row=3; store=1; syms eigval; for loop1= Col:-1:1 Rw=1; syms eigval; …
user3303896
  • 57
  • 1
  • 2
  • 6
0
votes
1 answer

Am I using a wrong numerical method?

This is the code: f = dsolve('D3y+12*Dy+y = 0 ,y(2) = 1 ,Dy(2) = 1, D2y(2) = -1'); feval(symengine, 'numeric::solve',strcat(char(f),'=1'),'t=-4..16','AllRealRoots') If I remove 'AllRealRoots' option it works fast and finds a solution, but when I…
0
votes
2 answers

Can I Expand "Nested" Symbolic Functions in Matlab?

I'm trying to model the effect of different filter "building blocks" on a system which is a construct based on these filters. I would like the basic filters to be "modular", i.e. they should be "replaceable", without rewriting the construct which is…
Sagie
  • 243
  • 1
  • 10
0
votes
1 answer

Solving Numerical Integration Implicitly in Matlab

I am working on constant temperature hot-wire anemometry in Matlab. So I am using a second order differential equation (conduction equation). I solved the main equation analytically and found temperature…
CanYusuf
  • 65
  • 11
0
votes
2 answers

Differentiate the number e (exp(1)) symbolically

I want to take the derivative the a function that includes the number e (exp(1)). How can I solve symbolically using e (i.e., not decimal numbers). For example: syms x e=exp(1) diff(e^-x)
Josep
  • 3
  • 1
0
votes
1 answer

Solving an N-port in MATLAB

I have an N-Port which I want to derive the equivalent Z matrix, where N = 2 is the number of ports in this instance. So, for example, P = Z * U Where P and U are 2x1 vectors and Z is a 2x2 matrix. I've applied conditions for P and measured U for…
mataleo99
  • 121
  • 1
  • 7
0
votes
1 answer

Solving system of equations with parameters for dynamic vector with Matlab

I am trying to solve a system of equations for a symbolic vector. The equations contain parameters though. Running the attached code gives me to many and incorrect solutions. I guess the function aussumes the second input to be equations,…
Tano
  • 13
  • 4
0
votes
1 answer

how can I solve a redundant symbolic system in matlab?

let n0 = nx*cos(a) + nz*cos(b)*sin(a) + ny*sin(a)*sin(b) ny*cos(b) - nz*sin(b) nz*cos(a)*cos(b) - nx*sin(a) + ny*cos(a)*sin(b) in a and b,with the ns fixed (but of course,not assigned) values. if I…
user1834153
  • 330
  • 5
  • 20