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

Plot2d cut in 3D function

I have 3D Gaussians and their derivatives (Laplace operator) f1(x,y,z):=exp(-w1*((x-x1)^2+y^2+z^2)); f2(x,y,z):=exp(-w2*(x^2+y^2+z^2)); dx2_f2(x,y,z):=diff(f2(x,y,z),x,2); Lf2(x,y,z):=diff(f2(x,y,z),x,2) + diff(f2(x,y,z),y,2) +…
Prokop Hapala
  • 2,424
  • 2
  • 30
  • 59
4
votes
3 answers

"Heap exhausted, game over" message in wxMaxima - Does ccl will work for me?

everyone, I'm trying to do some calculations and plot the results, but it seems that these are too heavy for Maxima. When I try to calculate N1 and N2 the program crashes when parameter j is too high or when I try to plot them, the program displays…
4
votes
5 answers

How to find the nth term of a generating function using sympy?

I have a rational function: f(x) = P(x)/Q(x). For example: f(x) = (5x + 3)/(1-x^2) Because f(x) is a generating function it can be written as: f(x) = a0 + a1*x + a2*x² + ... + a_n*x^n + ... = P(x)/Q(x) How can I use sympy to find the nth term of…
user10957988
4
votes
2 answers

How to simplify log(8)/log(2) in Maxima CAS?

I want to simplify log(8)/log(2) I know that log(8)/log(2) = log(2^3)/log(2) = 3*log(2)/log(2) = 3 it is possible in Maxima but not works for me: Maxima 5.41.0 http://maxima.sourceforge.net using Lisp GNU Common Lisp (GCL) GCL 2.6.12 Distributed…
Adam
  • 1,254
  • 12
  • 25
4
votes
1 answer

For loop with Maxima

for i:1 thru 3 step 1 do; posix:arithsum(li*cos(ri(t))),1,i-1)+(li*cos(ri(t))/2); posiy:arithsum(li*sin(ri(t))),1,i-1)+(li*sin(ri(t))/2); What I wanna do is to get 6 position functions(3 x and 3 y). It should give me values like…
user10141041
4
votes
1 answer

Integrating a piecewise defined function in maxima

Say that I have the following function: f(x) := if x<=0 then 0 else if x<=1 then 1 else -1; Or any other piecewise defined function. The function definition seems to work: (%i9) f(-11); f(1/2); f(2); (%o7) 0 (%o8) 1 (%o9) -1 However integration…
Kasper
  • 12,594
  • 12
  • 41
  • 63
4
votes
2 answers

How to display a fraction as a mixed number in maxima?

I'm giving a course where students are used to the mixed number notation. However, all the calculations that maxima does, use the more traditional notation of fractions. Is it possible to present 3/2 as 1 1/2. I need this for the latex output…
Kasper
  • 12,594
  • 12
  • 41
  • 63
4
votes
0 answers

Make ASDF3 available in Maxima's SBCL

Maxima for Windoows is compiled with SBCL but somehow is missing ASDF3 support. Here is the output of *FEATURES* from Maxima: (QUICKLISP ASDF2 ASDF ASDF-UNICODE CL MK-DEFSYSTEM CLTL2 64-BIT 64-BIT-REGISTERS ALIEN-CALLBACKS ANSI-CL ASH-RIGHT-VOPS …
mobiuseng
  • 2,326
  • 1
  • 16
  • 30
4
votes
1 answer

Non-Evaluation of Numerical Expression in Maxima

I start with a simple Maxima question, the answer to which may provide the answer to the actual problem I'm grappling with. Related Simple Question: How can I get maxima to calculate: bfloat((1+%i)^0.3); Might there be an option variable that can be…
R. Peek
  • 71
  • 5
4
votes
1 answer

SymPy Taylor expansion for functions symbols

How can you perform a Taylor expansion with respect to function symbols in SymPy? For example from sympy import * ode = f(x).diff(x, 2) - sin(f(x)) We would like to linearize the differential equation by doing something like ode.series(f, 0, 1) to…
nicoguaro
  • 3,629
  • 1
  • 32
  • 57
4
votes
1 answer

"GenerateMatrix" equivalent command in SymPy

In Maple there is a command "GenerateMatrix" that will take a collection of linear equations and generate a symbolic matrix A and symbolic vector b in "Ax=b" where "x" is a vector of variables specified by the command. The help page can be found…
John
  • 791
  • 1
  • 6
  • 22
4
votes
1 answer

Get right-hand side of equation

I am calling the function mnewton(0=expr, alpha, %pi/4) to get the root of a rather complex equation expr. %(i1) mnewton(0=expr, alpha, %pi/4) %(o1) [alpha=0.678193754078621] I need to apply another function to this result (e.g. sin) and then…
Frithjof
  • 2,214
  • 1
  • 17
  • 38
4
votes
3 answers

How to evaluate logarithms in Maxima?

Following examples from here, and here I tried this: log2(x) := log(x) / log(2); log2(8), float; But this doesn't give 3, instead I get log(8)/log(2).
wvxvw
  • 8,089
  • 10
  • 32
  • 61
4
votes
2 answers

Solving piecewise functions in Maxima

I attempted to solve a piecewise function in Maxima, but none of the solutions of the functions were returned: piecewiseExample(x) := if (x < 5) then x*2 else x/2; solve([piecewiseExample(x) = 4], [x]); //result: [(if x<5 then 2*x else x/2)=4] Is…
Anderson Green
  • 30,230
  • 67
  • 195
  • 328
4
votes
1 answer

simpsum in maxima missing basic infinite series identities for : sum(k * x^k, 0, inf)

Maxima's simpsum seems to be lacking some basic identities for infinite series. It has : sum(x^k, k, 0, inf), simpsum=true; but doesn't even have identities for: sum(k * x^k, k, 0, inf), simpsum = true; Is there a more comprehensive series…
daj
  • 6,962
  • 9
  • 45
  • 79
1 2
3
56 57