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
0
votes
2 answers

Maxima plot not working

What am I doing wrong in this code? atvalue(y(x),[x=0],1)$ desolve(diff(y(x),x)=y(x),y(x)); plot2d(y(x),[x,-6,6]); Output: plot2d: expression evaluates to non-numeric value everywhere in plotting range. plot2d: nothing to plot false I want to plot…
BinaryBurst
  • 139
  • 5
0
votes
1 answer

Maxima doesn't find a solution for diff eq with desolve

During my exercise with wxmaxima 11.08.0 (ubuntu 12.04, Maxima version: 5.24.0) I followed an example from P.Lutus and his second example didn't work for me. eq: y(t) = -r*c*'diff(y(t),t)+m*sin(%omega*t); sol:desolve( eq, y(t) ); Is %omega zero or…
0
votes
2 answers

2D graph of function in for loop

I am a beginner in wxMaxima and I would need to get multiple 2d graph for this function: fn (x) = x ^ n, x = <0,1>, n = 1, .., 50 I tried something like this: for n:1 while n <= 50 do( plot2d ([x ^ n], [x, 0,1], [plot_format, gnuplot])…
user1827257
  • 1,600
  • 4
  • 17
  • 24
0
votes
3 answers

Maxima tex output of equation with equal(a,b) function as =

When I have an equation in Maxima, say "x=5" in the form equal(x,5) and I use the tex function on it, I get the output $${\it equal}\left(x , 5\right)$$ but I would like to get $$x=5$$ Is this possible?
mmzc
  • 602
  • 8
  • 19
0
votes
1 answer

Run Maxima on iOS Without Rejection From The App Store?

Is there a way to run maxima on iOS? I know running another binary is grounds for rejection, so is there a way to not have to start another binary? Or is there another library that can do what maxima can do? I need factor(), expand(), diff() and…
Ari Porad
  • 2,834
  • 3
  • 33
  • 51
0
votes
2 answers

How to assign the output results at the loop for in maxima to different variables

I want to save the output of this for to different variables, for example, matrix A1, A2 and A3. B:matrix([0,-%pi/2,theta[1],0],[0,%pi/2,0,d[2]],[a[3],0,theta[3],0]); D:matrix_size(B); for i: 1 step 1 thru D[1]…
0
votes
1 answer

Is the absolute value function differentiable at x=0

Both Wolfram Alpha (diff abs(x)) and Maxima (diff(abs(x),x,1);) say that the absolute value function is differentiable at x=0, and that the derivative is x/abs(x). How would you go about excluding the point x=0 from the domain when formulating the…
0
votes
2 answers

Maxima missing obvious simplifications

I'm developing some equations to go on a embedded controller, and thus trying to reduce them to the simplest (fewest terms) possible. Unfortunately, what wxmaxima is spitting out is nearly half a page long, for each of the 5 equations I need. What…
user339860
  • 137
  • 1
  • 7
0
votes
4 answers

maxima- How can I execute some maxima script from php?

I'm new to CAS and maxima. I'd like to know whether it's feasible to do the following: 1) I have a list of parameters e.g. a, b, c 2) In PHP, I have some maxima script stored as a string, involving a, b, c, e.g.: do { a=random(20); …
Boyang
  • 2,520
  • 5
  • 31
  • 49
0
votes
2 answers

integrate cos(x)*cos(2x)*...*cos(mx) via SAGE

I'm going to find $I_m=\int_0^{2\pi} \prod_{k=1}^m cos(kx){}dx$, where $m=1,2,3\ldots$ Simple SAGE code: x=var('x') f = lambda m,x : prod([cos(k*x) for k in range(1,m+1)]) for m in range(1,15+1): print m, numerical_integral(f(m,x), 0,…
0
votes
1 answer

Eigenvectors with dgeev in Maxima

I am finding eigenvectors with the function dgeev in maxima and comparing them with eigenvectors I find from the same matrix but using mathematica. In the odd column right eigenvectors in maxima are the same as in mathematica but not the even. And…
user1558881
  • 225
  • 1
  • 6
  • 14
0
votes
2 answers

Normalized Eigenvectors Maxima

I wa swondering if anyone knows of any function in Maxima to find the normalized eigen vectors of a 21x21 matrix? I am using the function dgeev but I do not believe these eigenvectors are normalized. I appreciate Any thoughts, Ben
user1558881
  • 225
  • 1
  • 6
  • 14
0
votes
2 answers

More compact Solution in Maxima

I have the following code: for n:1 thru 11 do for j:1 thru 21 do v[n,j]:1/sqrt(dp)* (sum(eigenfunctionsort[n,j]*exp(%i*2*%pi*m*x/dp),m,-10,10)); Where eigenfunctionsort is defined earlier,x is a variable I will integrate over later and I am…
user1558881
  • 225
  • 1
  • 6
  • 14
0
votes
1 answer

Sort solutions in maxima?

Consider that I get this output in maxima: b : solve([ans,ans2],[x,y]); float(b); [[x=0.0,y=%r11],[x=-5.0,y=0.0],[x=1.0422311,y=0.537285*%i],[x=-0.940313,y=0.537285*%i],[x=-5.1019178,y=0.537285* …
Pavoo
  • 67
  • 1
  • 5
0
votes
2 answers

Retrieving numerical result from function

I am working on a code in maxima and in it I define a function. Ucr(y):=offset+c1[21]+2*sum(realpart(c1[m+20])*cos(2*%pi*(m-1)*y/dp) - imagpart(c1[m+20])*sin(2*%pi*(m-1)*y/dp),m,2,nmax+1); However if I try to evaluate something like Ucr(1) I do not…
user1558881
  • 225
  • 1
  • 6
  • 14