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

How to make Maxima display more digits

How do you make Maxima print out all the digits it possibly can? For example I entered 256^(256); and maxima returned 323170060713110073007148766886[557 digits]952148193555853611059596230656. I want it to print all the 557 digits in between, how do…
E7_82_8E
  • 45
  • 7
3
votes
1 answer

declare a variable as *not* an integer in sage/maxima solve

I am trying to solve symbolically a simple equation for x: solve(x^K + d == R, x) I am declaring these variables and assumptions: var('K, d, R') assume(K>0) assume(K, 'real') assume(R>0) assume(R<1) assume(d [K > 0, K is real,…
asachet
  • 6,620
  • 2
  • 30
  • 74
3
votes
1 answer

maxima: use function as function argument

Like the title says, I want to use a function as a function argument. Intuitive I tried something like: a(t,c) := t+c; b(R_11, R_12, R_13, d_1x, d_1y, d_1z) := R_11*d_1x + R_12*d_1y + R_13*d_1z; f( a(t,c), b(R_11, R_12, R_13, d_1x, d_1y, d_1z),…
Knipser
  • 347
  • 1
  • 13
3
votes
1 answer

How to plot step function in maxima with plot2d

How to plot floor function in Maxima? f4(x) := floor(x); I want to get rid of unnecessary vertical lines:
trupanka
  • 693
  • 8
  • 20
3
votes
1 answer

MAXIMA string to integer conversion

I am reading a list with 2 integers from a file using readline(s) which returns a string. How does one convert the string of 2 integers back to 2 integers? Thanks.
sven
  • 51
  • 4
3
votes
2 answers

Sympy fails, wxMaxima not

I am trying to solve the following indefinite integral both with wxMaxima and sympy: integrate(r^2*sqrt(R^2-r^2),r) In Maxima I do got an answer but not in sympy. I do not understand why. I am a heavy user of Python and will love to do symbolic…
fossekall
  • 521
  • 1
  • 10
  • 27
3
votes
3 answers

how to integrate / link R and Computer Algebra Systems (CAS)

I'm looking for a possibility to use different 'higher' math operations in combination with R. A link or integration between R and a CAS would be the perfect solution. Which integration of R and other (math & statistic related) systems or vice verse…
FloE
  • 1,166
  • 1
  • 10
  • 19
3
votes
3 answers

Is it possible to change the way Maxima generates LaTeX code?

I would like to be able to change the way Maxima generates the LaTeX code (in general). For example, I have the following code in Maxima: I then exported the code to LaTeX, and I immediately get an error saying: ! Package inputenc Error: Unicode…
nbro
  • 15,395
  • 32
  • 113
  • 196
3
votes
1 answer

Why do i get e^x log(e) when i try to differentiate e^x on maxima?

When I input "diff(e^x,x);" into Maxima, what I get in return is "e^x log(e)". What can I do to get the correct answer? (just e^x)
3
votes
1 answer

Maxima: what does Maxima call an "array"?

I am a bit confused ; I noticed that if I do : a[sqrt(2)] : 1; arrays; I would get : [a] So a is an array for Maxima… yet sqrt(2) is an irrational number. I use to think of an array as a collection of items sorted by indices, where those indices…
Gael Lorieul
  • 3,006
  • 4
  • 25
  • 50
3
votes
1 answer

Maxima: how to plot a 2D and 3D vector?

What is the simplest way to plot and 2D and 3D vectors using wxMaxima? I have searched around, but all the solutions seem too complicated just for a single plot of simple vector, is that possible? I would like to see 3 vectors at the same time in a…
nbro
  • 15,395
  • 32
  • 113
  • 196
3
votes
1 answer

Maxima: display list vertically

By default, Maxima displays lists "horizontally" : (%i1) myList : [1,3,7]$ myList; (%o1) [1,3,7] I am working with lists containing very few atoms, but each atom takes up a lot of space when displayed. Therefore it would be more convenient…
Gael Lorieul
  • 3,006
  • 4
  • 25
  • 50
3
votes
1 answer

maxima: expanding nested summation

I have the following Maxima code: m:sum(x[i],i,1,N)/N; and then I want to calculate $m^2$. m2:m^2, sumexpand; Then I get double summation: sum(sum(x[i1]*x[i2],i1,1,N),i2,1,N)/N^2 What I want to achieve is to expand it into the two sums. The…
0x2207
  • 878
  • 1
  • 6
  • 20
3
votes
3 answers

Maxima - differentiating a piecewise function

Suppose you have a function defined by intervals, such as f(x):=block(if x<0 then x^2 else x^3); When we differentiate it with diff(f(x),x); we get d/dx (if x<0 then x^2 else x^3) whereas I'd like to get (if x<0 then 2*x else 3*x^2) Is there a…
mmj
  • 5,514
  • 2
  • 44
  • 51
3
votes
3 answers

How do I translate a complicated recurrence from clojure to maxima?

I think this little program: (defn average [lst] (/ (reduce + lst) (count lst))) (defn sqsum [lst] (reduce + (map #(* % %) lst))) (defn tet [row col] (cond (= [row col] [0 0]) 0 (= [row col] [1 0]) 1 (< row (inc col)) 0 …
John Lawrence Aspden
  • 17,124
  • 11
  • 67
  • 110