Dear all,

I'd like to test the expression: (sqrt(x))^2 with Stack. I made a test with the demonstrating stack website.

I get this result.

Could you tell me please if something is wrong or is it a bug?

Thanks

Bertrand

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.

Dear all,

I'd like to test the expression: (sqrt(x))^2 with Stack. I made a test with the demonstrating stack website.

I get this result.

Could you tell me please if something is wrong or is it a bug?

Thanks

Bertrand

Bertrand,
I'm painfully aware of this problem. It is caused by the behaviour in Maxima. For a minimal example type the following into Maxima:

STACK already modifies some of the TeX output, either via Maxima's "texput" command or by directly modifying the lisp code, here: https://github.com/maths/moodle-qtype_stack/blob/master/stack/maxima/stacktex.lisp

Chris

simp:false$ p:sqrt(x)^2$ tex(p);It is on my list, but since this is a very well constrained problem someone else might like to look at it.

STACK already modifies some of the TeX output, either via Maxima's "texput" command or by directly modifying the lisp code, here: https://github.com/maths/moodle-qtype_stack/blob/master/stack/maxima/stacktex.lisp

Chris

Thanks for your answer. May be someone else will look at it.

Bertrand