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
3
votes
4 answers

Maxima crashes on relatively simple integral

I'm trying to Maxima-fy my Mathematica box options formula (https://github.com/barrycarter/bcapps/blob/master/box-option-value.m) but Maxima crashes on a fairly simple integration: load(distrib); pdflp(x, p0, v, p1, p2, t1, t2) :=…
user354134
3
votes
0 answers

Euler Project 401 at Maxima

Statement of the problem: The divisors of 6 are 1,2,3 and 6. The sum of the squares of these numbers is: 1 + 4 + 9 + 9 + 36 = 50 Allow sigma2(n) to represent the sum of the squares of the n-dividers. Thus, sigma2(6) = 50. And addition_sigma2 (n) is…
Programar
  • 31
  • 3
3
votes
1 answer

How to output text from lists of variable sizes using printf?

I'm trying to automate some output using printf but I'm struggling to find a way to pass to it the list of arguments expr_1, ..., expr_n in printf (dest, string, expr_1, ..., expr_n) I thought of using something like Javascript's spread operator…
booNlatoT
  • 571
  • 3
  • 14
3
votes
0 answers

Maxima personality failure 38 on Windows Subsystem for Linux Ubuntu

I have Ubuntu on my windows installed through Windows Subsystem for Linux. I installed Maxima using apt. But when trying to run Maxima I get the error: personality failure 38 What is the problem and how I can solve it?
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
3
votes
2 answers

How can I evaluate an integration to a number?

I have some functions set up like this: f(x):=1-2**-x$ g(y):=integrate(f(x), x, 0, y)$ and evaluated them: f(1)$float(%); g(1)$float(%); but for g(1), I got a symbolic answer instead of a numerical answer. Using float() was an attempt to get a…
david4dev
  • 4,854
  • 2
  • 28
  • 35
3
votes
2 answers

Is there a null value in maxima?

I have the following two functions: find(list, closure) := block( filter: sublist(list, closure), if length(filter) > 0 then filter[1] else null)$ find_index(list, closure) := block( filter: sublist_indices(list, closure), if length(filter)…
Kasper
  • 12,594
  • 12
  • 41
  • 63
3
votes
2 answers

Order of variables in maxima x^2+y^2 becomes y^2+x^2

If I have the polynomial x^2+y^2 in maxima, then maxima will display it like y^2+x^2. Is there a way to specify that the variable x will be displayed before the variable y instead?
Kasper
  • 12,594
  • 12
  • 41
  • 63
3
votes
1 answer

In Maxima, how to check whether a series converges?

I would like to create a function that returns true precisely if a series diverges to infinity. Unfortunately it seems that Maxima throws an error if a series diverges. I loaded the package simplify_sum and I hoped that…
Jolien
  • 148
  • 7
3
votes
1 answer

Simplify same power multipliers

In Maxima, I can use "rootscontract" to combine multipliers with the same rational power: (%i1) x^(1/2) * y^(1/2), rootscontract; (%o1) sqrt(x*y) Is there a standard method to combine multipliers for arbitrary powers?: (%i2) 2^x * 3^x,…
vbugaev
  • 31
  • 2
3
votes
2 answers

In Maxima, how can I solve this equation?

In Maxima, how can I solve this equation? And actually I have 24 unknown value with lots of this kind of equation. How I can use Maxima to solve? to know the unknown value: a, b, c,…
3
votes
2 answers

Evaluating if two basis sets span the same subspace in maxima

Is there some function in maxima for evaluating if two bases span the same subspace. For example, I ask my student to calculate a basis of the null space of a given matrix. In my solution, I have a specific basis. But I want to make sure that if the…
Kasper
  • 12,594
  • 12
  • 41
  • 63
3
votes
2 answers

Writing a text file containing LaTeX code from maxima expressions

Suppose in a (wx)Maxima session I have the following f:sin(x); df:diff(f,x); Now I want to have it output a text file containing something like, for example If $f(x)=\sin(x)$, then $f^\prime(x)=\cos(x)$. I found the tex and tex1 functions but I…
booNlatoT
  • 571
  • 3
  • 14
3
votes
1 answer

Solve differential equation with SymPy

I have the following differential equation that I would like to solve with SymPy This differential equation has the implicit solution (with h(0) = [0,1) and t = [0, inf) ) but SymPy gives which other packages such as Maxima are able to find. With…
Chiel
  • 6,006
  • 2
  • 32
  • 57
3
votes
1 answer

Solving trignometric terms with maxima

I try to get all roots of cos(x) with wxMaxima (%i29)solve(cos(x)=0,x); solve: using arc-trig functions to get a solution. Some solutions will be lost. (%o29) [x=%pi/2] The solution gets solved by using arccos. How can i get all solutions for a…
ronny
  • 33
  • 6
3
votes
1 answer

Check if answer is from specific form

I want to check if some maxima input is of a specific form. For example, I want to check if the answer is of the form A*%e^(B*t) where A and B are specific real numbers. If student X gives answer 3*%e^(5*t), then it is of this form. If student Y…
Kasper
  • 12,594
  • 12
  • 41
  • 63