Questions tagged [mupad]

MuPAD is a computer algebra system.

MuPAD is the computer algebra system behind the Symbolic Math Toolbox for MATLAB. It is not sold separately, but does offer a more symbolic computation oriented language as an alternative to computing in MATLAB.

82 questions
0
votes
1 answer

Rewriting a function in specific terms with Matlab

I feel there should be an easy solution to my problem but I couldn't find it. I can explain my problem through a very simple example: Given the functions f and a: f := x(x-3) + 2x(x-3) a := (x-3) I now want to write f in terms of a which should…
hschokker
  • 69
  • 4
0
votes
1 answer

Error messege about identifiers in mupad procedures

I try to write functions in mupad but it seems I haven't understood how procedures and identifiers work. I get every time the message "Error: Unexpected 'identifier'". First example: I tried changing the first row of a given matrix to [1 1 ... 1].…
Danis Fischer
  • 375
  • 1
  • 7
  • 27
0
votes
1 answer

How to start mupad from matlab?

I want to plot inequalities. Mupad is very useful in doing that. How is it possible to start Mupad from Matlab ? Using mphandle = mupad returns error ??? Undefined function or variable 'mupad'. I am using matlab version 7.11.0.584 (R2010b)
Ashni Goyal
  • 819
  • 3
  • 10
  • 20
-1
votes
1 answer

Mupad 3D graphing issues

I have been trying to plot two surfaces on a 3D graph using Mupad. The first is created by the function: (x-1)^2 / 4 + (y+2)^2 / 9 + (z+1)^2 = 9 The Second surface I have no problems with apart from some scaling issues: 4(x-1)^2 + 4(y+2)^2 =…
-1
votes
1 answer

Matlab: ratio of symbolic polynomials - extract numerator and denominator

Suppose I have a Matlab expression consisting of a ratio of polynomials of the symbolic variable 'x'. The polynomial coefficients are likewise symbolic. Is there a simple way to extract the numerator and the denominator of the expression? It is fine…
Gabriel
  • 27
  • 6
-2
votes
1 answer

Is this a bug in MuPAD?

I have u0 as step function (piecewise definition): piecewise([0 < t, 1], [t < 0, 0]) Now I compute: int(u0(t)|t=k, k=-infinity..t) which gives piecewise([0 < t, t], [t <= 0, 0]) In a textbook I found the answer: piecewise([0 =< t, t], [t < 0,…
TraceKira
  • 281
  • 2
  • 13
-4
votes
1 answer

How to translate this code from muPAD to Python?

I hope if someone knows how to express the following Mupad code in Python: for n from 1 to 6 do M:= matrix([[B(k,j) $ k = 0..n] $ j = 0..n]); C:=matrix([c(j)$ j = 0..n]); A:=linalg::matlinsolve(M, C);P:=sum(A[j+1]*x^j, j = 0..n);plot(P,fx, x…
1 2 3 4 5
6