Questions tagged [wxmaxima]

WXMAXIMA QUESTIONS MUST BE PROGRAMMING RELATED. A GUI front-end Maxima built with wxWidgets

A GUI front-end Maxima built with wxWidgets. https://github.com/wxMaxima-developers/wxmaxima.

154 questions
4
votes
0 answers

Unable to solve equations involving trigonometric funcions

I am trying to solve an equation involving trigonometric functions with Maxima, but I am not able to get the solutions. For example, solve(sin(x) = cos(x),x) returns [sin(x) = cos(x)] instead of %pi/4, and even equations with only one solution fail,…
User1234321
  • 321
  • 1
  • 10
4
votes
1 answer

wxMaxima: subindexed variables in functions work when written as "x_1" but not when written as "x[1]"

I'm having trouble defining a function in terms of variables with subindices. Using the makelist command I can create an unspecified function that depends upon the subindexed variables x[1] and x[2]. However, when I try to give an expression to that…
User1234321
  • 321
  • 1
  • 10
4
votes
3 answers

"Heap exhausted, game over" message in wxMaxima - Does ccl will work for me?

everyone, I'm trying to do some calculations and plot the results, but it seems that these are too heavy for Maxima. When I try to calculate N1 and N2 the program crashes when parameter j is too high or when I try to plot them, the program displays…
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
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

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

plotting a 2d wave function in maxima with respect to some temporal domain

I'd like to know how to plot a wave function u(x,t), which is defined on spatial domain x and temporal domain t by using wxMaxima. Please help me with the code if we set x=[-5:5], t=[0:10] and we would like the function to be plotted and moved…
2
votes
2 answers

How to get only the real solutions in Maxima?

I am trying to solve an equation with Maxima so that I only get real solutions if they exist; if there are no real solutions, or if there are not even complex solutions, I would like Maxima to return an empty list. For example, I would like that…
User1234321
  • 321
  • 1
  • 10
2
votes
1 answer

Reverse abscissa/ordinate axis in wxdraw2d or wxplot2d wxmaxima

By default, the draw/plot function plots y-axis values in ascending order (from bottom to top). In other words, -ve values are at the bottom of the graph and +ve values above the origin (towards the top of the plot). Can we reverse (see the figure…
mily
  • 149
  • 1
  • 9
2
votes
3 answers

Simplifying a fraction with sums of polynomials in the numerator

I'm trying to simplifying the following in maxima: (6*C*b3m*ω+(8*%i*R0^3*b^3-24*%i*R0^3*a*b^2+24*%i*R0^3*a^2*b-8*%i*R0^3*a^3)*Γ+3*A*E*a3p*k+2*%i*K*b3m)/(6*C*ω+3*A*E*k+2*%i*K) So far, here's what I get : But I can easily see that the quantity in…
2
votes
0 answers

Inverse of a 6x6 matrix with (wx)Maxima or XCAS

I have to show the inversion of the "S-matrix": To obtain the "C-Matrix" in the form: which are the relevant instructions/commands for either (wx)Maxima or XCAS? TIA & BR
mily
  • 149
  • 1
  • 9
2
votes
2 answers

Maxima: Is there any way to make functions defined within the main function be local, in a similar way to local variables?

I wonder if there is any way to make functions defined within the main function be local, in a similar way to local variables. For example, in this function that calculates the gradient of a scalar function, grad(var,f) := block([aux], aux :…
User1234321
  • 321
  • 1
  • 10
2
votes
0 answers

Maxima: shuffle order of elements in a list?

Question Given a list L:[a,b,c,d,e,f] is there a built in way of randomly shuffling the elements of the list? Something like: M:random_order(L); > [ b, c, d, a, e, f] I checked the documentation for Functions and Variables for Lists for any…
Rax Adaam
  • 790
  • 3
  • 11
1
2 3
10 11