MathAction SandBoxTroubleWithOperators



SandBoxTroubleWithOperators
last edited 10 years ago by Bill Page

Operators are not immutable. Operator properties are dynamic and among other things affect equality!

fricas
(1) -> f:=operator 'f
Type: BasicOperator?
fricas
g:=operator 'f
Type: BasicOperator?
fricas
test(f=g)
Type: Boolean
fricas
test(kernels f(x) = kernels g(x))
Type: Boolean
fricas
test(f(x)=g(x))
Type: Boolean
fricas
name f
Type: Symbol
fricas
name g
Type: Symbol

Change or add a property.

fricas
display(g,(x:List OutputForm):OutputForm+->prefix('G,x)$OutputForm)
Type: BasicOperator?
fricas
g(x)
Type: Expression(Integer)
fricas
test(f=g)
Type: Boolean
fricas
test(kernels f(x) = kernels g(x))
Type: Boolean
fricas
test(f(x)=g(x))
Type: Boolean
fricas
name f
Type: Symbol
fricas
name g
Type: Symbol




Subject: Be Bold !!
( 15 subscribers )
Please rate this page:

AltStyle によって変換されたページ (->オリジナル) /