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

(wx)Maxima: determining the number of parts of an expression

I'd like to use part to handle expressions of different length but have not been able to find anything in the documentation that addresses how to determine the number of parts of an expression. I do have an upper bound for the number of parts so, in…
Rax Adaam
  • 790
  • 3
  • 11
1
vote
1 answer

Transforming Equations WxMaxima Ezunits

I'm having problems transforming equations, again... Setting up the functions b(a) and c(b) works. Inserting them into each other also works to get from a temperature to a current c(b(a)). But now I want to flip it around a(c). The result should be…
Dux
  • 101
  • 4
1
vote
1 answer

Maxima texput for sqrt function

I was trying to redefine the output for sqrt() in Maxima, using texput, but am getting an error that I can't make sense of. This is the function I wrote for creating the desired string: sqrt_tex:lambda([e], printf(false,"\\csqrt{~a}",…
Rax Adaam
  • 790
  • 3
  • 11
1
vote
1 answer

(wx)Maxima: literal order of polynomials

The documentation for powerdisp indicates that the options are either to display as a truncated power series, or from the greatest power to the least; is there any way to have it display the literal order provided (when unambiguous)? e.g. if the…
Rax Adaam
  • 790
  • 3
  • 11
1
vote
0 answers

wxMaxima: "*" wrong number of arguments

I used texput to redefine the tex1 output for *: texput("*", "", infix); but this causes an error when there are more than two terms: tex1(a*b); > ab tex1(a*b*c); > "*": wrong number of arguments. Any idea why this is happening or how I…
Rax Adaam
  • 790
  • 3
  • 11
1
vote
0 answers

wxMaxima: understanding ratcoef

Ran into the following behaviour from ratcoef that I don't understand, and was hoping someone could help clarify what's happening. ratcoef(3*sqrt(x)+5/sqrt(x),x,1/2); > 3 as epected. However, ratcoef(x^(3/2)+3*sqrt(x)+5/sqrt(x),x,1/2); >…
Rax Adaam
  • 790
  • 3
  • 11
1
vote
0 answers

wxMaxima: set formatting for rational powers

I was wondering if there is some way to use texput to tell Maxima how to format powers when they are rational expressions. e.g. I would like tex1(2^(2/5)); > 2^{2 / 5} instead of the default 2^{ \frac{2}{5} }. Can this be done?
Rax Adaam
  • 790
  • 3
  • 11
1
vote
1 answer

Mathematica's ListLinePlot in wxMaxima

I have the following functions: P[t_] := P[t] = P[t-1] +a*ED[t-1]; ED[t_] := ED[t] = DF[t] + DC[t]; DF[t_] := DF[t] = b (F - P[t]); DC[t_] := DC[t] = c (P[t] - F); And the following parameters: a=1; c=0.2; b = 0.75; F=100; In Mathematica I use the…
Lagrange
  • 61
  • 6
1
vote
0 answers

Maxima: best practice for defining local variables in terms of other variables, within a block?

I thought the purpose of a block in Maxima was to protect global variables from being accidentally reassigned; however, I am not totally clear on the roles / rules for the different parts of a block. For example, if one defines the…
Rax Adaam
  • 790
  • 3
  • 11
1
vote
0 answers

How do i count members of a list in wxmaxima?

In wxmaxima, for my assignment I was given a list exp. L:[1,-2,3,4,-5,11,-12] I need to count members of the list that are less than 0, print that data and print such members. I used: L:[1,-2,3,4,-5,11,-12]$ n: length(L)$ for k:1 thru n step 1 do if…
Kugelblitz
  • 11
  • 1
1
vote
1 answer

How can i plot an array of numbers in WxMaxima?

I need to plot all the elements of a[n] 0<=n<=30. Is that possible in maxima? These are the numbers i need to plot
1
vote
1 answer

ezunits not so ez -- ideal gas

I'm having lots of problems with ezunits, can't seem to get the units and their conversions right. One should calculate the volume of 2 tanks at 20°C which are filled with 6kg H_2 at 700bar relative pressure. The total volume should be 0.103 m^3 and…
Dux
  • 101
  • 4
1
vote
0 answers

wxMaxima transform trigonometric expression

I got a equation in the following form f(t) = 2*cos(t) + 3*sin(t) and I want to reduce it to something like f(t) = (9 + 4)^(1/2) * cos(t - atan(3/2)) None of the trigonometric simplify functions seems to work. Is there a way to do so?
Voz bonita
  • 360
  • 2
  • 10
1
vote
0 answers

Maxima encountered a Lisp error: I do not understand what the problem is

I am trying to do an example in wxmaxima wxplot_size:[1024,768]$ wxanimate_framerate:2$ with_slider_draw( /* The parameter we want to assign to the slider and all values it can assume */ R,Resistors, /* The thing we actually want to draw…
ebjargu
  • 11
  • 1
  • 2
1
vote
0 answers

wxMaxima won't show plots

I downloaded Maxima using Macports as per instructions on sourceforge. But every time I try to plot using wxplot2d it shows this: dyld: Library not loaded: /opt/X11/lib/libfontconfig.1.dylib Referenced from: /usr/local/bin/gnuplot Reason: image not…