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

Obtaining real and positive solution of a polynomial equation in wxMaxima

I'd like to solve the following equation in wxMaxima: k*A*((T_2-T_1)/L)=ε*σ*A*(T_1^4-T_a^4) for T_1. The problem is that with regular Solve and Solve_to_poly I get extremely long outputs but not what I would expect. I need a real and positive…
FEA-eng
  • 106
  • 6
3
votes
0 answers

How to iterate complex numbers on the Riemann sphere in Maxima CAS?

I try to iterate complex numbers ( also inf and zero) in Maxima CAS I use rational function and it's derivative The only one attracting cycle is the period 3-cycle consisting of the points 0, −1, and infinity. kill(all); display2d:false; ratprint :…
Adam
  • 1,254
  • 12
  • 25
3
votes
0 answers

How to remove all x-dependent term in a maxima expression?

I have an expression that consists of functions of x and y, something like ay+yf(x)+g(x)+bh(x)+k(y). Is there a convenient method that removes all x-dependent terms and leaves ay+k(y)? f,g,h,k are symbolic and not known functions. As far as I know,…
3
votes
1 answer

Custom simplification (rules and patterns)

Hello I'm very new to maxima. How could I have something like dot products noticed and simplfied? Attempt 1: tellsimpafter(a[1]*b[1]+a[2]*b[2], dot(a,b)); Works for a[1]*b[1]+a[2]*b[2] but not v[1]*w[1]+v[2]*w[2] nor…
GGG
  • 295
  • 1
  • 9
3
votes
1 answer

Find the terms in a sequence in terms of the initial elements given the recurrence relation

Summary: I have a k-th order recurrence relation, and I need to find the terms a[n] in terms of a[0], a[1], ..., a[k-1] Consider this recurrence relation: 2*(n+2)*(n+1)*a[n+2] + 3*(n+1)*a[n+1] + (n+3)*a[n] = 0 Since this is a second order…
Cem
  • 1,276
  • 4
  • 17
3
votes
0 answers

Maxima wrongly says a matrix is non-invertible

The below matrix matrix is clearly invertible modulo 3. But Maxima returns false when I try to obtain its inverse. 0 1 1 1 What is wrong here? M: matrix([0,1],[1,1]); zn_invert_by_lu(M,3 ); According to doc: zn_invert_by_lu (matrix, p) Uses the…
Name
  • 339
  • 2
  • 18
3
votes
1 answer

Substitution into differential equations in Maxima

let's say I have several differential equations in the following form where the variables in the pointed brackets are complex numbers for example My question is whether it is possible in the Maxima to write down at first the set of the…
Steve
  • 805
  • 7
  • 27
3
votes
1 answer

Maxima numerical integration syntax

I'm trying to obtain a numerical solution to the following integral: 1 The correct answer is -0.324 + 0.382i but as seen below I am not getting a numerical answer and would appreciate help with the Maxima syntax. 2 Perhaps related to why I am not…
Carey
  • 67
  • 5
3
votes
1 answer

(wx)Maxima: general roots of numbers, beyond sqrt?

I'm wondering if there are generalizations of the sqrt function in Maxima? In particular, I'd like to be able to control whether x^(a/b) displays as $x^{\frac{a}{b}}$ or $\sqrt[b]{x^{a}}$. I searched the index of the documentation for root but…
Rax Adaam
  • 790
  • 3
  • 11
3
votes
2 answers

wxMaxima: how to define the inverse of a function?

I know that we can find the inverse of a function using solve e.g. f(x):= a*x+b$ [invf]:solve(f=f(x),x); However, I haven't been able to work out how to use this in the definition of a new function. I tried a few things,…
Rax Adaam
  • 790
  • 3
  • 11
3
votes
0 answers

Maxima: symbolic matrix simplifications

I am trying to use Maxima to simplify a symbolic matrix expression. I've learned that there are the non-commutative multiplication . and the non-commutative power ^^ operators. So I can write something like the following: e1: X^^(-1) . (X^^(-1) +…
0x2207
  • 878
  • 1
  • 6
  • 20
3
votes
8 answers

Counting the numbers in a list that are larger than their neighbors

I want to find a peak in a list. I want to find if a number is bigger than his neighbors. if it is the first object in the list I want to check only if he is bigger than the one after him. if it is the last object in the list I want to check the…
Nadavsh
  • 29
  • 5
3
votes
3 answers

Python: Find maxima and discontinuities in a numpy array

I have a question related to finding maxima or more preciseley discontinuities in a numpy array? My exemplary data looks for example like this a = np.array([3,4,5,8,7,6,5,4,1]) In general, I am interested in every maximum/jump in the data. For…
Jan
  • 57
  • 5
3
votes
1 answer

Maxima: eliminate variables from equations

Given N equations in K variables, can Maxima produce N-J equations in K-J variables? SOLVE and ELIMINATE seem unable, about to reach for pen and paper.
Devon
  • 1,019
  • 9
  • 20
3
votes
0 answers

Greek letter in Maxima plot

How do you write greek letters as axeslabel with Maxima and/or wxMaxima? In wxmaxima I tried by clicking on the greek letters in the left panel, but on the plot I got theta instead of $\theta$
mattiav27
  • 655
  • 2
  • 9
  • 27