Another lame question : defining function by a result.
Subject: Another lame question : defining function by a result.
From: Jordan Tuzsuzov
Date: Wed, 22 Dec 2004 05:07:33 -0800 (PST)
Hello,
It is just about the expectance of work. I want to
define a function f(x) by a result of previous
calculation, related to x. Example :
(%i1) 1 / ( x^3 - 1 );
1
(%o1) ------
3
x - 1
(%i2) integrate(%,x);
2 x + 1
2 ATAN(-------)
LOG(x + x + 1) SQRT(3) LOG(x - 1)
(%o2) - --------------- - ------------- +
----------
6 SQRT(3) 3
(%i3) f(x) := %o2;
(%o3) f(x) := %o2
(%i4) f(10);
2 x + 1
2 ATAN(-------)
LOG(x + x + 1) SQRT(3) LOG(x - 1)
(%o4) - --------------- - ------------- +
----------
6 SQRT(3) 3
The x is not substituted by 10 in call %i4. Why ?
Thanx.
Jordan
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo