This is regular '%display' property, set in BasicOperator.
Ah. Cool.
And just for reference...
The property is defined in op.spad like this.
dfact x == postfix("!"::Symbol::O, (ATOM(x)$Lisp => x; paren x))
The following code will then print "factorial(n)" as factorial(n).
newdfact(x:OF):OF == prefix("factorial"::Symbol,[x])
fa := factorial(n)
k := kernels(fa).1
op := operator k -- this is the factorial BasicOperator
display(op, newdfact)
'display' will set '%display' property to value that you give. But
this value will affect translation to OutputForm, so all formatters.
Yes. But if one wants to achieve something locally, other parts maybe
uninteresting.
Thank you for your help.
Ralf
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/163066e6-beba-4562-a72e-9faa5afbaadf%40hemmecke.org.