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

Solving a second-order differential equation with both Dirichlet and Neumann boundary conditions

I want to solve the Fourier’s law for the heat equation of an isolated electrically heated rod: with a Dirichlet boundary condition of and a Neumann boundary condition of …
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
1
vote
2 answers

plotting with ezunits and if-clause

Sadly I'm having trouble with ezunits and plotting again. This time in combination with if-clause. This works, but probably not as it should: /*just works*/ M_K1q(n):= if n <= 500 then 0 else (n-500)^2/20000; wxdraw2d(explicit(qty(M_K1q(n)), n,…
Dux
  • 101
  • 4
1
vote
1 answer

How to create a 3D plot of a path from equations of motion in wxMaxima?

I have the following equations of motion of a point: x(t):=r*cos(t^2)$ y(t):=r*sin(t^2)$ z(t):=b*t$ I already calculated the velocities and accelerations but now I would like to plot a path in 3D for this data: r:5; b:2; It should look like a kind…
FEA-eng
  • 106
  • 6
1
vote
0 answers

wxMaxima: textbook print possible at input?

Using wxMaxima, is it possible with input cells to use natural print directly (sometimes also known as mathprint, textbook print, natural print, etc.)? So, for example, instead of seeing linear text such as (77+2.23)/2 like one would normally if…
Sogosha
  • 11
  • 2
1
vote
1 answer

How to do a partial fractions expand of an equation with wxMaxima that has several non integer coefficients

how are you?. I'm having a problem to do a partial fraction expand in wxMaxima, I have the following equation which has several non integer coefficients 3.63353804840429*10^-8*z^2-7.322452324955847*10^-8*z+3.687492572586066*10^-8 X(z) = …
vram
  • 85
  • 8
1
vote
0 answers

(wx)Maxima: how to extract (only) the value from `solve`?

I'm trying to find the roots of relatively simple polynomial expressions, programmatically. I found solve(expr, var) returns a list of equations that satisfy expr and found that using args on this list elements will list [var, val_i] and was…
Rax Adaam
  • 790
  • 3
  • 11
1
vote
1 answer

Intervals for term structures

For a student learning platform (mathematics) we have managed to include Maxima and evaluate terms/equations/numbers on equivalence. For this we have programmed an algorithm randomly choosing numbers for all the variables and then comparing the two…
1
vote
1 answer

Plotting dual recursion equations with wxplot2d always exceeds control stack

I have the following Maxima code: A[t] := if t=0 then A0 else (a+b)*A[t-1]+B[t-1]+c ; B[t] := if t=0 then B0 else (a-b)*B[t-1]+c ; a:0.1; b:0.1; c:1; A0:100; B0:0; wxplot2d(A[t], [t, 0, 100]); The only remotely weird thing I can…
1
vote
1 answer

wxMaxima: Finding the closest larger/smaller number

How can one find the closest larger and closest smaller number from a maxima list? Which maxima functions should I explore?
mily
  • 149
  • 1
  • 9
1
vote
1 answer

wxMaxima: Check whether a matrix is zeromatrix or not

Do we have a predefined function to check whether a matrix is a zero matrix or not? Else, how can this check be performed efficiently?
mily
  • 149
  • 1
  • 9
1
vote
1 answer

(wx)Maxima: create a list of characters (as strings) without having to quote each character, individually?

I frequently find myself needing to create a list of characters, e.g. xopts:["p", "q", "r", "s", "t", "u", "v", "x", "y", "z"]; and was looking for a way to produce these lists, without having to wrap every character in "'s.
Rax Adaam
  • 790
  • 3
  • 11
1
vote
1 answer

(wx)Maxima: how to evaluate lists of symbolic variables?

I'm writing a script that requires a variable number of symbolic variables and am struggling to understand how to evaluate the resulting expressions MWE: (%i1) foo:makelist(f[i],i,3); (foo) [f[1],f[2],f[3]] (%i2) bar:lreduce("*",foo); (bar) …
Rax Adaam
  • 790
  • 3
  • 11
1
vote
0 answers

How to label the maximum point in a line chart using Maxima

How can I label the maximum point in a line chart using Maxima? I have the code below in which I am plotting T(t): draw2d( xlabel = "t", ylabel = "T", explicit(ev(T), t, 0, 0.99)); However, I want to label in the chart, the point where t maximizes…
Macosso
  • 1,352
  • 5
  • 22
1
vote
1 answer

understanding for-do loops in wxMaxima

I am trying to understand the workings of for-do loop and trying to access the different items in the lists below: (%i2) thetas : [45,-45,-45,45]$ z : [-0.5,-0.25,0.0,0.25,0.5]$ (%i3) for c1:1 thru length(thetas) do ( htop :…
mily
  • 149
  • 1
  • 9
1
vote
1 answer

wxMaxima extract solution from "solve"

I have the following code which works fine untill the second to last instruction. (%i17) M_A; (%o17) [500.0,-0.22*F_Bz-750.0,0.22*F_By-105.0] (%i18) solve(M_A[2]); rat: replaced -750.0 by -750/1 = -750.0 rat: replaced -0.22 by -11/50 =…
mily
  • 149
  • 1
  • 9