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

Generate LaTeX from Maxima input

I want to use Maxima to evaluate documents. It's easy to convert Maxima output into TeX: (%i1) tex(5*x^2+sin(x)+c)$ $$\sin x+5\,x^2+c$$ However, it doesn't work for previously input lines: (%i2) 5*x^2+sin(x)+c; …
Ryan Kennedy
  • 3,275
  • 4
  • 30
  • 47
16
votes
4 answers

How to use Maxima's diff in function definition?

I want to use a function's derivative in an other function. How should this be done in Maxima? E.g: f(x) := 2*x^4; g(x) := diff(f(x),x)-8; Now g(x) yields 8x^3-8 as expected, but g(0) gives an error, since diff(f(0),0) doesn't make sense. But then…
shinjin
  • 2,858
  • 5
  • 29
  • 44
13
votes
2 answers

Stop maxima from asking positive, negative or zero

Is there some way to tell maxima that an expression is always positive? Here is an example snippet that causes maxima to ask the question for the expression sin(a)*x: declare([a,x,y],real); ca: cos(a) = (x / (sqrt(x*x + y*y))); a1:…
Willem
  • 917
  • 7
  • 19
12
votes
2 answers

Maxima: convert matrix to list

I convert list to matrix in Maxima in following way: DataL : [ [1,2], [2,4], [3,6], [4,8] ]; DataM: apply('matrix,DataL); How to do it the other way ? How to convert given matrix DataM into list DataL ?
Grzegorz Wierzowiecki
  • 10,545
  • 9
  • 50
  • 88
10
votes
1 answer

Declare a variable to be a positive real number in maxima?

I have the following maxima code: declare(p, real)$ declare(q, real)$ declare(m, real)$ is(-(4*p^2*q^2)/m^2-(4*p^4)/m^2 < 0); This evaluates to unknown. Can I declare that p,q and m are positive real numbers?
Kasper
  • 12,594
  • 12
  • 41
  • 63
8
votes
4 answers

How to find the maximum and minimum of a function using Maxima?

I have trying to find a way to obtain the maximum and the minimum value of a function using Maxima (wxMaxima), but until now I have not found how to do it. Could you please tell me how would you do it? For example, suppose I have the following…
nbro
  • 15,395
  • 32
  • 113
  • 196
8
votes
5 answers

How to approximate a number to a n number of decimal places?

I have started using maxima just a few weeks ago (actually I have just used it a few times) with the wxMaxima interface for OS X. I have tried to find a solution for this around the web, but maybe because I am blind or maybe because I do not have…
nbro
  • 15,395
  • 32
  • 113
  • 196
7
votes
2 answers

What is the recommended way to make & load a library?

I want to make a small "library" to be used by my future maxima scripts, but I am not quite sure on how to proceed (I use wxMaxima). Maxima's documentation covers the save(), load() and loadFile() functions, yet does not provide examples. Therefore,…
Gael Lorieul
  • 3,006
  • 4
  • 25
  • 50
7
votes
1 answer

Coefficients of polynomials maxima

Is there a built-in function in maxima to get from a polynomial function a list with its coefficients? And to get the degree of the polynomial? The most similar function I found is args, but it also returns the variable together with the…
Maximator
  • 83
  • 1
  • 5
6
votes
3 answers

Maxima 2D plot -- How to set axes equal

For example, what is a code for plotting y = x so that y- and x-axis have the same scale ?
weis26
  • 401
  • 6
  • 16
6
votes
1 answer

SBCL error: "binding stack exhausted" when running Maxima on Linux machine

I realize there are many places I can ask this question at but I thought I'd try here. I've already seemingly attained as much help as I can from the good people at Maxima. I run Maxima with SBCL and consistently get errors; INFO: Binding stack…
nate
  • 269
  • 2
  • 11
6
votes
2 answers

Maxima: how to replace common subexpressions with symbols

Suppose I have an expression like (actually mine is much more complex, thousands of characters) expr:a+b*c+b*c*d; and I want to replace an internal sub-expression with a symbol (useful to avoid recomputation of common subexpressions), say k in…
mmj
  • 5,514
  • 2
  • 44
  • 51
5
votes
0 answers

How do I get the coefficient of 3*x*y in maxima?

How do I get the coefficient of 3*x*y in maxima? I tried coeff(3*x*y, x*y). But it only works on expressions of the form coefficient*var^n.
Kasper
  • 12,594
  • 12
  • 41
  • 63
5
votes
1 answer

Maxima: how to replace variables in equations

I'm trying to write down some notes of my work. The way Maxima would simplify my work is that once I write bunch of equations and I want to change the definition of a variable, I do it and re-evaluate the entire file. Here is an example of what I'm…
guidout
  • 322
  • 1
  • 4
  • 13
5
votes
1 answer

wxMaxima: overlapping print

I'm using wxMaxima 16.12.0 (Maxima 5.39.0) and when I try to print the output, I get overlapping text. Here's an example (please, ignore the fact the the command couldn't be correct) 1st image Sometimes happens also with print and printf (inside a…
igng
  • 372
  • 1
  • 6
  • 17
1
2 3
56 57