Show input in Symbolic form without computation in Maxima

荒凉一梦 提交于 2019-12-11 06:07:58

问题


In Maxima when I enter for example:

I can see my input in a "readable" way, in order to verify everything I have typed in is interpreted the way I want. I want to be able to at first see my input in symbolic form and after that the result of my computation. For example when I define x as 5 I want the same result as above and after that the simplified form.

Is that possible? I use wxmaxima.

Another simple example for illustration: When I enter 5*5 I want an output saying 5 5 and then a second output with 25.


回答1:


Maybe you can get the effect you want by disabling simplification.

(%i1) simp:false;
(%o1)                                false
(%i2) x:5;
(%o2)                                  5
(%i3) 34*sqrt(x+ 7)/(7*x^2);
                                34 sqrt(5 + 7)
(%o3)                           --------------
                                        2
                                     7 5
(%i4) %, simp;
                                  68 sqrt(3)
(%o4)                             ----------
                                     175

Simplification, in Maxima, means applying arithmetic and algebraic identities. Many important operations such as adding and multiplying numbers are carried out by simplification in Maxima, so if you disable simplification, you will get results that are pretty different from what you would get with simplification enabled. But you can get the usual result by simplifying it, as in %i3 above.



来源:https://stackoverflow.com/questions/44375539/show-input-in-symbolic-form-without-computation-in-maxima

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!