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

Symbol matrix function differentiation

1.The function 'diff' seems could only work with one-element variable 'v' diff(f,v); % f(v), v is a one-lelement variable while I would like do differentiation on a symbol matrix diff(F, V); % F(V), V is a symbol matrix variable 2.If I make…
xychen
  • 31
  • 4
0
votes
1 answer

Assigning Numeric Range to MATLAB Symbols

I have constant symbols such as t = sym('t') c = sym ('c') but I have to restrict these symbols with a constraint stating that t is between 0 and 1 (greater equal to zero, smaller equal to one). For c just greater and equal to zero. I can easily…
HarveyMudd
  • 19
  • 6
0
votes
1 answer

how to store symbolically the derivatives in matlab

my question relates to the Symbolic Math Toolbox from Matlab. I have the following code: syms x x_0 u delta sigma_1 mu = sym ('mu(x)'); sigma_u = sym ('sigma(u)'); sigma = sym ('sigma(x)'); f = int (1/sigma_u, u, x_0, x); df = subs(diff(f,x)) df_2 =…
0
votes
1 answer

Maple plot of algebraic expression

If I write in Maple AC := Amp*sin(2*Pi/T*t); then I am able to see the expression in algebraic way. But I can't plot it because T is unset (plotting against t, of course). If I write T := 100e-6; AC := Amp*sin(2*Pi/T*t); plot(AC,…
Andrew
  • 201
  • 1
  • 3
  • 10
0
votes
1 answer

Simplifying coefficients of expressions with MATLAB's symbolic toolbox

Suppose I have the following MATLAB code. syms a b c1 c2 c1 = a + b + pi*b c2 = a + b + 0.5*b Then c1 gets evaluated to a + b + pi*b and c2 to a + (3*b)/2 However, I need MATLAB to calculate double precision values for the coefficients for a and b…
smilingbuddha
  • 14,334
  • 33
  • 112
  • 189
0
votes
3 answers

Syms command does not work in my Matlab 2008b

My Matlab is 2008b version when I give the following command : x=syms('x') it return the follwing message : ??? Undefined function or method 'syms' for input arguments of type 'char'. and the same for the command of the form : syms c1 c2 x…
0
votes
4 answers

MATLAB: Why does solve return an empty sym object?

I´m trying to solve this set of equations in MATLAB and I get an empty sym object: equations = {'I2B+I2EQAB=I22B+I2EQBC',... 'I2A=I2EQAB+I2EQAC+I22A',... 'I2C+I2EQBC+I2EQAC=I22C',... 'I22B=IZB+IC1B',... …
Ziortza
0
votes
2 answers

initial values for Dsolve in matlab

Suppose that you have a differential equation and you want to solve that with dsolve function in matlab but at first you must ask the user for initial values and according to what he would input the program gives the answer. How should I do that?
0
votes
1 answer

MuPad: Cannot work with symbolic expansion when handling matricial expressions

I am working MuPad in order to have a symbolic tool to find solution for an equation. But I am working with matrices. Consider this: blck := A ->…
Andry
  • 16,172
  • 27
  • 138
  • 246
0
votes
1 answer

How to return the real/imaginary part of a symbolic polynomial in MATLAB?

Given a polynomial such as (a+b*i)*c+i, where a, b, c are defined as symbolic elements to represent three real values and i is the imaginary unit, how to return the real part and imaginary part of this polynomial?
datcn
  • 751
  • 5
  • 13
  • 20
0
votes
1 answer

How to convert Mupad symbol 'I' {sqrt(-1)} to 'i' in matlab

I am trying to evaluate this integral in matlab matlab is treating 'ans' as a symbol because of 'I'. How to convert this 'I' into 'i' so that ans becomes a complex number. much appreciated!
claws
  • 52,236
  • 58
  • 146
  • 195
0
votes
1 answer

Solving Exponential equation in MATLAB parametrically

i want to solve this equation... | 1 1 1 | |b0| |exp(t) | | 0 1 2 | |b1|=|exp(t) | | 1 1 1 | |b2| |exp(2*t)| i like the answer be like this: for example: b0=2*exp(t)+exp(2*t) b1=exp(t)+1 b2=exp(
mjjv
  • 3
  • 2
0
votes
2 answers

How do I symbolically integrate functions in matlab where I know the output must contain bessel functions?

I am working with the following function: f(x) = a*(1+cos(3*x)) where a is constant/parameter. y(x) = exp(-b*f(x)) where b is another constant. I need to compute the definite integral integral(0,2pi)y(x)dx. I am trying to implement another research…
0
votes
2 answers

Reflective Language for Symbolical Computations

I'm seeking for a language that operates on programs, written in that very language. That is a language whose programs are the primary (possibly the only) objects of that language. Something like self-program transformation language, made solely…
-1
votes
1 answer

How to fix the error name 'phi' is not defined?

I'm trying to solve the following laplace transform: f(t) = sen(ωt + φ) I wrote the following code to solve the problem import sympy as sym from sympy.abc import s,t,x,y,z from sympy.integrals import laplace_transform from sympy.integrals import…