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

wxMaxima + gnuplot = Mathematica-like densitymap with a twist

I would like to plot the frequency-domain response of a filter in a similar manner to how the pole-zero plots are on the Wikipedia's "Chebyshev filter" page: http://en.wikipedia.org/wiki/File:Chebyshev_Type_I_Filter_s-Plane_Response_(8th_Order).svg…
Vlad
  • 75
  • 5
3
votes
1 answer

Sage's (or Maxima's) solve gives a bad answer for diff(p, x) == 0?

I am using Sage to (within a script) solve a simple equation in two variables: sage: x, y = var("x y") sage: p = x*y + x/y + 1/x sage: diff(p, x) y + 1/y - 1/x^2 sage: diff(p, y) x - x/y^2 sage: solve([diff(p,x)==0, diff(p,y)==0], [x,y]) [[x == 0, y…
Jérémie
  • 1,353
  • 9
  • 19
3
votes
2 answers

how to add expressions and do numerical calculation in Maxima?

I would like to ask: how I can add expressions in Maxima? i.e. I have: A = x + y; B = 2*x + 2*y; How to get Maxima to give me (A + B)? how I can do numerical calculation in Maxima? I want to assign x = 1; b = 2; How to get the numerical value of…
CaTx
  • 1,421
  • 4
  • 21
  • 42
3
votes
1 answer

Make plots inside the WXMaxima GUI

How can I make the plots generated from plotting functions (like plot2d() lie inside the WXMaxima GUI rather than open new Windows? Someone made this in front of me, and I can't find out how he made that. Thank you.
The Quantum Physicist
  • 24,987
  • 19
  • 103
  • 189
3
votes
1 answer

Maxima - what is "expt"?

I have been recently using Maxima (instead of Maple) and I obtained a weird symbol for which I didn't manage to get information. Here is the code…
Stupidyeti
  • 45
  • 1
  • 4
3
votes
2 answers

Plot for the Solutions of Non-linear differential equations

I have a system of differential equations in Maxima. And I am trying to draw the solutions. diff_eq1: 'diff(p(t),t) = (5/2 + (3^(1/2))/24 - (5/8)*p(t) - ((3^(1/2))/24)*q(t)) * p(t); diff_eq2: 'diff(q(t),t) = (7/8 + (3*(3^(1/2))/2) -…
user14416
  • 2,922
  • 5
  • 40
  • 67
3
votes
1 answer

Flatten matrix in Maxima

How to flatten a matrix composed of other matrices in Maxima? What I mean by this is, if I put a matrix to be an element in a new matrix, I cannot reach the underlying elements directly. The dimension of the outer matrix does not change!
user1597652
  • 175
  • 1
  • 7
3
votes
2 answers

Maxima gives crazy answer for integrate(exp(x^2))

I'm trying to learn how to use Maxima. Something goes wrong with integrate : (%i) integrate(exp(x^3),x,1,2); (%o) (gamma_incomplete(1/3,-8)-gamma_incomplete(1/3,-1))/3 (%i) float(%); (%o) .3333333333333333 (- 715.7985328824436 %i -…
user29831
  • 31
  • 1
3
votes
1 answer

Assigning a list of values to a list of variables

Is there a way in Maxima to assign values to a list of variables? Say I have two lists: var : [a, b, c]; val : [1, 2, 3]; ... and I want to assign 1 to a, 2 to b etc. Of course by iterating over the lists somehow, not "manually", i.e. a : 1; b : 2…
2
votes
1 answer

Get new contents of a file

A node.js script calls the maxima computer algebra system and redirects my input to the stdin of maxima. Maxima the writes the processed input to a temporary text file where there is a new line for every result maxima returns. Can node watch for…
Christoph
  • 49
  • 5
2
votes
2 answers

Maxima: Using makeset with a given set

Using the computer algebra system Maxima I try to do a very simple set operation: given a set A of sets and a set a, I'd like to build the set of the union of all elements of A and a. So for example let be A={{1,2}, {3,4}, {}} and a={0,97}. The set…
lumbric
  • 7,644
  • 7
  • 42
  • 53
2
votes
0 answers

Is there a way to get Maxima to show its steps of integration?

I am modeling the methods used by integral-calculator to implement an API that runs maxima commands on a server. So far, setting up integrate(), diff(), and limit() have all gone relatively smoothly, however the end goal is to create a teaching aid…
2
votes
0 answers

Using gradef with complex quantities in Maxima

I'm using gradef to declare the gradients of certain complex variables (that depend on an independent variable, say, t) in terms of other complex variables dependent on the same independent variable. But I'm running into some issues while applying…
2
votes
1 answer

Plotting linear regression and residual in Maxima via gnuplot

Motivation I'm using TeXmacs to write math assignments and Maxima as CAS program. I recently found out how to use plot2d in gnuplot via Maxima. Questions I now need to plot a linear regression line using some coordinates / table data. And it would…
dotnetCarpenter
  • 10,019
  • 6
  • 32
  • 54
2
votes
1 answer

simplifying composite function (diff) in maxima (chain rule for differentiation)

How can the following formula be simplified in Maxima: diff(h((x-1)^2),x,1) Mathematically it should be : 2*(x-1)*h'((x-1)^2) But maxima gives : d/dx h((x-1)^2)
abdelkader
  • 71
  • 1
  • 4