11-03-2018, 10:49 PM
Hello, Users and Developer group of the hp-prime calculator
Topic: Operations (+, -, *, /, o) with functions on CAS VIEW and HOME VIEW (NUMERICAL)
it is required to define the same mathematical object twice =( to show the graphic part and symbolic operation
CAS VIEW
FUNCTION VIEW
Thanks
Topic: Operations (+, -, *, /, o) with functions on CAS VIEW and HOME VIEW (NUMERICAL)
it is required to define the same mathematical object twice =( to show the graphic part and symbolic operation
CAS VIEW
PHP Code:
assume(X,symbolic) [Enter] Error: Bad Argument
F1(X):=2*X -3 [enter] ok
F2(X):=X² + 1;
F3(X):=F1(F2(X)) [enter] ok
simplify(F3(X)) [enter] -1 =( // X^2+2*X-2
// X → X_
assume( X_ , symbolic)
F1(X_):=2*X_ -3
F2(X_):=X_² + 1;
F3(X_):=F1(F2(X_)) [enter] => 2*(X_^2+1)-3 // Composition of functions
F4(X_):=F2(F1(X_)) [enter] => (2*X_-3)^2+1
F5(X_):=(F1+F2)(X_) [enter] => X_^2+2*X_-2 // Combination of functions
F6(X_):=(F1-F2)(X_) [enter] => -X_^2+2*X_-4
F7(X_):=(F1*F2)(X_) [enter] => (X_^2+1)*(2*X_-3)
F8(X_):=(F1/F2)(X_) [enter] => (2*X_-3)/(X_^2+1)
F9(X_):=F1(X_+1) [enter] => 2*(X_+1)-3 // Horizontal translation of 1 units to the left
F0(X_):=F1(X_)-5 [enter] => 2*X_-8 // Vertical translation of -5 units down
F10(X_):=F1(X_-1) [enter] => 2*(X_+1)-3 // Horizontal translation of 1 units to the right
F11(X_):=F1(X_)+5 [enter] => 2*(X_+1)-3 // Vertical translation of +5 units to the up
F12(X_):= -F1(X_) [enter] => -2*X_+3 // Reflection (with respect to the x axis)
F13(X_):= F1(-X_) [enter] => -2*X_-3 // Reflection (with respect to the y axis)
F14(X_):= -F1(-X_) [enter] => 2*X_+3 // Reflection (regarding the origin):
FUNCTION VIEW
PHP Code:
// restart(X) // numerical mode
F1(X)=2*X -3
F2(X)=X² + 1;
F3(X)=F1(F2(X)) [Eval] 2*(X^2+1)-3
F4(X)=F2(F1(X)) [Eval] (2*X-3)^2+1
F5(X)=(F1+F2)(X) [Eval] does not respond
F6(X)=(F1-F2)(X) [Eval] does not respond
F7(X)=(F1*F2)(X) [Eval] does not respond
F8(X)=(F1/F2)(X) [Eval] does not respond
F9(X)=F1(X+1) [enter] 2*(X+1)-3
F0(X)=F1(X)-5 [enter] 2*X -3-5
Thanks