The noun form doesn't prevent simplification, only evaluation.
The simplifying package has a function which allows you to construct
expressions tagged as simplified. I don't currently have access to
Maxima to check the exact name, but it's something like make_simp("*",
[2,3,5]). Of course, if it is *re*simplified, eg by multiplying by
something, then it is no longer "protected".
What exactly are you trying to accomplish?
-s
On 2011-03-03, redneb at gmx.com <redneb at gmx.com> wrote:
> On Wed, Mar 02, 2011 at 10:57:57PM -0800, Richard Fateman wrote:
>>On 3/2/2011 10:43 PM, redneb at gmx.com wrote:
>>> Hello all,
>>>
>>> When I enter "factor(6)" in maxima it returns "2*3" (with display2d
>>> set to false). I am trying to write a function that does the same
>>> thing, ie it returns a product as a noun. But when I define for example
>>>
>>> f(x,y) := '"*"(x,y)
>>>
>>> then f(2,3) returns
>>>
>>> '?mtimes(2,3)
>>
>>no, it should return 6. It does that for me.
>
> There is a (single) quote in front of "*".
>
>
>>>
>>> and not 2*3. How does factor do it?
>>
>>type
>>factor(6);
>>?print(%)
>>
>>
>>The factor program puts a "simp" indicator on the result, i.e. ((mtimes
>>simp) 2 3)
>>even though the expression is not really simplified.
>>
>
> Ok, so is there a way I can insert a simp indicator just like factor
> does? Do I have to do it lisp?
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
--
Sent from my mobile device