|
|
|
last edited 13 years ago by test1 |
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ||
|
Editor: Bill Page
Time: 2008/05/22 13:03:01 GMT-7 |
||
| Note: new | ||
changed: -a:Union(Symbolic,Integer) -b:Union(Symbolic,Integer) a:Union(Symbol,Integer) b:Union(Symbol,Integer) added: a:=3.14
(1) -> a:Union(Symbol,Integer)
b:Union(Symbol,Integer)
c:=a*3-b*2
| (1) |
p:UP(x,Integer):=x*2-7
| (2) |
pc := p c
| (3) |
f(x)==x^3-x^2+1
fb := f b
Compiling function f with type Symbol -> Polynomial(Integer)
| (4) |
a:=1
| (5) |
b:=-3
| (6) |
eval(pc,['a=a, 'b=b])
| (7) |
eval(c,['a=a, 'b=b])
| (8) |
eval(fb,['a=a, 'b=b])
| (9) |
a:=3.14
Cannot convert right-hand side of assignment 3.14
to an object of the type Union(Symbol,Integer) of the left-hand side.