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

How to change line thickness of a line (implicit_plot) in maxima [v5.44]?

I want to change the line width of a plot. The [style, [lines, 8, 1]] option does not change the thickness. why is that? I'm just typing it like so: wximplicit_plot(y^2 = 4*(1/8)*x, [x, -5, 10],[y, -10, 10], [yx_ratio, 1], [xtics, -4, 1, 10],…
topcat
  • 177
  • 3
  • 17
2
votes
2 answers

How to find a polynomial as an approximate solution to a nonlinear equation?

For my small FLOSS project, I want to approximate the Green et al. equation for maximum shear stress for point contact: that should looks like this when plotted the same equation in Maxima: A: (3 / 2 / (1 +…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
2
votes
1 answer

(wx)Maxima: return expressions using `sec` `csc` and `cot` instead of reciprocals?

Currently, the output for inputs involving sec or the other reciprocal trig functions seem to return expressions in terms of reciprocals, e.g.: expand(integrate(6*sec(2*y)^7*tan(2*y)^3, y)); > 1/(3*cos(2*y)^9)\-3/(7*cos(2*y)^7) Is there any way to…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
2 answers

(wx)Maxima: how to get consistent expressions using `args`?

I'm trying to write a small script that will look at the first term of an expression and determine whether it is positive or negative, then print a + or - in front of that expression, accordingly; however, I'm having a bit of trouble writing it in…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
1 answer

(wx)Maxima: does `makelist` work in parallel or serially?

I am interested in creating a list whose terms are defined recursively (i.e. term[i] is a function of term[i-1], not a function of i-1). I figured that if makelist works serially, then calling a previous term should not be an issue; however, the…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
1 answer

Apply function to a list of named arguments in Maxima

For problems with, say, Lagrangian multipliers, you can solve for critical points. Often, you will get a set of critical points. Is there a way to easily map the original function over the solutions to evaluate/apply the function at those…
mpettis
  • 3,222
  • 4
  • 28
  • 35
2
votes
1 answer

(wx)Maxima: texput for powers of expressions

I have used texput to set the tex1 output of log(x) to be \ln(x) with texput('log, lambda([e],[a]:args(e), printf(false, "\\ln(~a)", tex1(a)))); and am wondering if it is possible to also set the output for something like (log(x))^n? In particular…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
1 answer

(wx)Maxima: how to iterate an action over every member of a list?

I'm wondering if there is a functional way to apply an action to every element of list, in Maxima, without necessarily looping over the list? e.g. if I would like to remove every element of the list a:[1,2,3] from the list b:[5,4,3,2,1]. Obviously,…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
1 answer

Maxima add current loop iteration to filename

I have code similar to the one below, where a function with a parameter depending on the loop iteration is plotted after every iteration. I would like to save the plot with the name trigplot_i.ps where i is the iteration number, but don't know…
balne
  • 23
  • 3
2
votes
1 answer

wxMaxima: how to use texput to tell tex1 how to handle strings?

tex1() seems to return all strings as follow: tex1(hello); {\it hello} tex1("hello"); \mbox{ hello } What variable must one use to change this handling via texput? e.g. if I would just like it to print strings literally? I'm using other…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
1 answer

wxMaxima: treat division as multiplication (gather overall divisions as multiplicative factor)

I'm wondering if there is any way to tell Maxima to return 1/2*x instead of x/2 I'm trying to handle u-substitutions using changevar however, it's returning expressions like: \frac{\int \cos{u} \de{u}}{5} whereas I'd like to have it display…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
1 answer

Maxima: how to distinguish between a row of a matrix and a row vector?

I'd like to build a function that can take a vector (i.e. a 1xm or nx1 matrix) or a column / row of a matrix, as input; however, I've come up on something that seems a bit weird: even though maxima handles vectors as matrices with either 1 row or…
Rax Adaam
  • 790
  • 3
  • 11
2
votes
2 answers

Maxima: Force a function to run with local-variables only? / How to Avoid Local Operations Affecting Global-Variables?

I've just discovered that I have some basic misunderstanding about how block works for functions. In general, I thought "what happens in a function, stays in a function (unless returned);" however, this doesn't seem to be the case, so I was hoping…
2
votes
1 answer

simple input of diacritical marks, and superscripts

There are times when you need to input modified variables with diacritical marks, or superscripts. Seems like declare_index_properties allows doing it at the stage of display print. But it is neither simple, nor very useful in formulas. is there a…
Asdf
  • 300
  • 2
  • 9
2
votes
2 answers

How to break from a loop in Maxima

I am new to Maxima. I am trying to write a loop in that I am checking if some condition met then exit from the loop. cp:for i:1 step 1 thru 10 do block(if(i>6) then break() else print(i,"is less than 6")); I want output: 1 is less than 6 2 is…
manchanda
  • 21
  • 2
1
2
3
10 11