Questions tagged [maxima]

Maxima is an opensource Computer Algebra System based on the legendary Macsyma. NOTE: This tag has NOTHING to do with 'finding the maxima' - for that, please use [max].

Maxima is an opensource Computer Algebra System based on the legendary Macsyma.

Maxima can manipulate a wide range of symbolic and numerical expressions. The system handles differentiation, integration, Taylor series, Laplace transforms, ordinary differential equations, systems of linear equations, polynomials, and sets, lists, vectors, matrices, and tensors.

Maxima yields high precision numeric results by using exact fractions, arbitrary precision integers, and variable precision floating point numbers. Maxima can plot functions and data in two and three dimensions.

More details:

841 questions
4
votes
2 answers

Maxima: Assign value to a variable, by addressing it in a matrix

I had a complex problem which is solved. Now i would love to automate it. In doing so, I do address a position in a matrix. This positions does contain a variable. I want to assign a value to this variable, by its position in the matrix. Here is a…
user3545413
  • 43
  • 1
  • 3
4
votes
1 answer

How do I get maxima to show me its working / intermediate steps

Maxima often does calculations in one pass that if I were doing myself I might put in intermediate steps, e.g. integrate(sin(theta)^2, theta); in this case diff(%,theta) will give me the crucial observation that 2*sin(x)^2=1-cos(2x), but more…
John Lawrence Aspden
  • 17,124
  • 11
  • 67
  • 110
4
votes
2 answers

Using lisp code in maxima

I want to use (make-array '(4 3 8)) in maxima which is basically to generate multi-d matrix as I am not able to find API to create multi-d matrices including with array(name,d1,d2...dm). I can execute it using :lisp (make-array '(4 3 8)) but I don't…
Pankaj Sejwal
  • 1,605
  • 1
  • 18
  • 27
4
votes
1 answer

Maxima CAS : summation with symbolic upper limit n not simplifying when the upper limit is specified later with ev()

The following two pieces of maxima code should be equivalent: sum(x[i], i, 1, 2); ev(%, x[1] = 5, x[2] = 3); and: sum(x[i], i, 1, n); ev(%, n = 2, x[1] = 5, x[2] = 3); In the first case, maxima knows to evaluate the expression to 8. In the second…
daj
  • 6,962
  • 9
  • 45
  • 79
4
votes
1 answer

Simplifying mathematical expression containing log and product in Maxima

I wonder how to simplify this expression in Maxima. log(product (exp(-(1/%lambda)*(x[i] -\mu)^a), i, 1, n)); Edit The following code is not simplifying the expression expand(log(product (exp(-(1/%lambda)*(x[i] -\mu)^a), i, 1, n))); Is there any…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
4
votes
1 answer

using wxMaxima to factor a polynomial

Suppose that I define some function, then make a change of variable and expand, as in the following lines: declare(a,real); declare(k,real); declare(z,real); myFun(a,k,z):=(1-1/2*((k-a)/2)^2)*z - 1 + 1/2*…
mforets
  • 143
  • 1
  • 4
4
votes
1 answer

Maxima: Differentiate sum at specific index-position

In Maxima 12.04.0 I have a sum mysum : sum(u[i]^2, i, 1, N); now I differentiate it diff(mysum, u[i]); now I specify a defined index i=A to differentiate it at at(%, i=A); Unfortunately maxima won't replace the u[i] in the sum that way. How can…
Benvorth
  • 7,416
  • 8
  • 49
  • 70
4
votes
2 answers

Multiple Plots in Maxima

I am writing a code in Maxima and I have three plots. I have no trouble plotting these individually but I can not figure out how to have them all on one plot with out doing it in one for loop, with out going into too much detail this would be…
user1558881
  • 225
  • 1
  • 6
  • 14
4
votes
4 answers

Algorithmically get Amplitude and Phase of Sine wave?

I'm trying to figure out a way to algorithmically get the amplitude and phase of a function that has sinusoidal terms in the Maxima computer algebra system. This only applies to steady state (as t -> infinity and the transients decay). For…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
4
votes
2 answers

How to create a plot with sliders in maxima?

In order to illustrate a Cauchy problem for first order ode with infinite family of solutions, I would plot the parametrized solution and having the possility of control the value the parameter through a slider. To be complete the Cauchy problem is…
agt
  • 179
  • 1
  • 6
3
votes
1 answer

How to assign the output of solve in maxima to a variable?

I am using xmaxima to solve two simultaneous non-linear equations using the 'solve' command.The answer displayed is x=[ans1, ans2,..], y=[ans1,ans2,...], But it is'int getting stored onto the variable 'x' and 'y' . How do I assign the output to a…
phobos
  • 105
  • 1
  • 5
  • 10
3
votes
1 answer

How to graph a function for several sets of parameters in Maxima

I would like to plot a function several times for different values of parameters. The function depends on a set of parameters, say paramOne and paramTwo. I would like to be able to specify several sets of those parameters, and for each set, get the…
Peutch
  • 763
  • 2
  • 12
  • 29
3
votes
1 answer

maxima: solving a set of equations

I'm trying to solve a set of symbolic equations in maxima. I'm using "algsys" comand, and it works, but the answer is depended on "%r1". I dont understand what %r1 is, and how can I get a explicit expression? maxima code: (%i4)…
Asaf Gross
  • 31
  • 1
  • 2
3
votes
1 answer

Maxima: Simplify matrix components

in Maxima, how is it possible to simply equations that are components of a matrix? I have a rather big matrix and want to simplify the components of it (e.g. factor out and cancel out). Thanks.
blubberbernd
  • 3,641
  • 8
  • 35
  • 46
3
votes
1 answer

Maxima asks: "positive, negative, zero ?" How to see all at once

Maxima often asks positive, negative, zero ? while solving ODE. Is there a way to see all of them at once ?
weis26
  • 401
  • 6
  • 16