Thursday, June 16, 2016

Casio Classpad’s (fx-CP400) Hidden Shift Functions

fx-CP400 Keyboard



Hidden Shift Functions

When I was giving a quick review of the Classpad’s fx-CP400 last March (http://edspi31415.blogspot.com/2016/03/a-quick-look-at-casio-classpad-fx-cp400.html), I mentioned that I would have liked the basic scientific functions assigned and listed on the keyboard.  It turns out that most of the keys have shifted functions.  The reason why they are not listed is because the shifted functions can be customized.  Here are the default shift settings:

COPY
CUT
PASTE
UNDO
√[ ]  
[ ] / [ ]
=
x
y
z
^
÷
T




(
7
8
9
*
θ
e^[ ]
ln(
log[ ]

)
4
5
6
-
|  with
sin(
cos(
tan(

,
1
2
3
+
=> store
π
i
ans
(-)
0
.
EXP
EXE

To assign (or clear) keyboard assignments: 
1.  Press Menu
2.  Select System (2nd page)
3.  On the top row of icons, select the (Shift) icon.  (first set, farthest right)
4.  Select a key.  To assign a function, select the box next to [ Set ].  Call up the keyboard if needed.  When are you ready, press [ Set ].
5.  You can clear a key by pressing [ Clear ].
6. To return to default settings, press [ Default ].
7.  When you are done with the keyboard settings, press [ OK ]. 
8.  Test your settings by going to the Main screen.

This is also shown on pg. 247 of the Casio Classpad II manual.

Here is my customized keyboard.  I made a keyboard on an index card and keep it with the Classpad.  It is great because we can easily call up commonly used functions without having to hunt through the soft keyboard.  For mine, I just kept the defaults and added some other basics to the missing keys (they are in green for reference):

COPY
CUT
PASTE
UNDO
√[ ]  
[ ] / [ ]
=
x
y
z
^
÷
t
sinˉ¹(
cosˉ¹(
tanˉ¹(
{ }
(
7
8
9
*
θ
e^[ ]
ln(
log[ ]
abs(
)
4
5
6
-
|  with
sin(
cos(
tan(
arg(
,
1
2
3
+
=> store
π
i
ans
(-)
0
.
EXP
EXE



This blog is property of Edward Shore, 2016.

Wednesday, June 8, 2016

HP Prime: Trigonometric CAS Rewrite Commands

HP Prime:  Trigonometric CAS Rewrite Commands



All of the following examples have CAS Simplification set to Minimum.

Rewrites of Arcsine and Sine
asin2acos
Toolbox → 4. Rewrite → 5. Sine → 1. asin x → acos x
asin2acos(2*asin(x)) returns
2*(-acos(x) + π/2)
asin2atan
Toolbox → 4. Rewrite → 5. Sine → 2. asin x → atan x
asin2atan(2*asin(x)) returns
2*(atan(x/√(-x^2+1))
sin2costan
Toolbox → 4. Rewrite → 5. Sine → 3. sin x → cos x tan x
sin2costan(2*sin(x)^2) returns
2*(cos(x)*tan(x))^2

Rewrites of Arcosine and Cosine
acos2asin
Toolbox → 4. Rewrite → 6. Cosine → 1. acos x → asin x
acos2asin(acos(x*π/2)) returns
-asin(1/2*π*x)+π/2
acos2atan
Toolbox → 4. Rewrite → 6. Cosine → 2. acos x → atan x
acos2atan(acos(x*π/2)) returns
-atan( (1/2*π*x)/
(√(1/4) –
√(-(π*x)^2+4) )+π/2
cos2sintan
Toolbox → 4. Rewrite → 6. Cosine → 3. cos x → sin x/tan x
cos2sintan(2*cos(x)^2)
Returns
2*(sin(x)/tan(x))^2

Rewrites of Arctangent and Tangent
atan2asin
Toolbox → 4. Rewrite → 7. Tangent → 1. atan x → asin x
atan2asin(atan(x/3)) returns
asin( (x/3) /
(√(1/9)*√(x^2+9))
simplify gets
asin( (x*√(x^2+9)) /
(x^2+9) )
atan2acos
Toolbox → 4. Rewrite → 7. Tangent → 2. atan x → acos x
atan2acos(atan(x/3)) returns
-acos( (x/3) /
(√(1/9)*√(x^2+9))+π/2
simplify gets
( (π-2*acos(
(x*√(x^2+9))/(x^2+9) )/2
tan2sincos
Toolbox → 4. Rewrite → 7. Tangent → 3. tan x → sin x/cos x
tan2sincos(tan(2*x))
returns
sin(2*x)/cos(2*x)
halftan

(sin x, cos x, tan x) → tan(x/2)
Toolbox → 4. Rewrite → 7. Tangent → 4. halftan
halftan(cos(2*x))
returns
(-tan(x)^2+1)/
(tan(x)^2+1)

Other Commands
tlin
(trigonometric form of powers) → (trigonometric form of linearized terms)
Toolbox → 4. Rewrite → 8. Trig → 5. tlin
tlin(cos(2*x)^2)
returns
1/2*cos(4*x)+1/2
trig2exp
(sin x, cos x, tan x) → (exponential form with complex exponentials)
Toolbox → 4. Rewrite → 8. Trig → 8. trig2exp
trig2exp(sin(x/3))
returns
1/(2*i) * (e^(i*x/3) – 1/e^(i*x/3))
atrig2ln
(asin x, acos x, atan x) → (logarithm form with complex exponentials)
Toolbox → 4. Rewrite → 8. Trig → 4. atrig2ln
atrig2ln(asin(x/3))
returns
i*ln(√(1/9)*√(x^2-9)+x/3)+π/2


That is a list of basic CAS commands for trigonometric rewrites. 

Eddie


This blog is property of Edward Shore, 2016.

Sunday, June 5, 2016

HP Prime and TI-84 Plus CE: Simpson’s Rule

HP Prime and TI-84 Plus CE:  Simpson’s Rule



Caption:  The Simpson’s Rule applied on ∫ X^2*e^X dx from X = 1 to 4
Actual value:  543.2632185

The program SIMPRULE approximates the integral of f(X)

∫ f(X) dX = h/3 * ( f(a) + 2*Σf(x_E) + 4*∑f(x_O) + f(b) )

Where:
a = the lower limit
b = the upper limit
n = the number of intervals, n is even
h = (b – a)/n
x_E = a + h*I where I is from 1 to n-1 and I is even
x_O = a + h*I where I is from 1 to n-1 and I is odd



HP Prime Program:  SIMPRULE

EXPORT SIMPRULE()
BEGIN
// EWS 2016-06-05
HAngle:=0; // Radians
LOCAL f;
INPUT({{f,[8]},A,B,N},
"Simpson Rule",
{"f(X)=","Low:","High:",
"Intervals (Even):"});
H:=(B-A)/N;
X:=A; T:=EVAL(f);
X:=B; T:=EVAL(f)+T;
FOR I FROM 1 TO N-1 DO
X:=A+I*H;
IF FP(I/2)==0 THEN
T:=2*EVAL(f)+T;
ELSE
T:=4*EVAL(f)+T;
END;
END;
T:=T*H/3;
RETURN T;
END;

TI-84 Plus CE Program:  SIMPRULE

Radian:Func
Input "LOW:",A
Input "HIGH:",B
Input "N (EVEN):",N
(B-A)/N→H
A→X:Y₁→T
B→X:Y₁+T→T
For(I,1,N-1)
A+I*H→X
If fPart(I/2)=0
Then
2*Y₁+T→T
Else
4*Y₁+T→T
End
End
T*H/3→T
Disp "INTEGRAL=",T

Examples:

Example 1:

∫ cos^2 X dX from X = 0 to X = π, n = 14
Approximation:  1.570796327

Example 2:

∫ X^2 + 3*X – 6 dX from X = 1 to X = 3, n = 14
Approximation: 8.66666667

Eddie

Source:

Burden, Richard L. and Faires, J. Douglas.  “Numerical Analysis” 8th Ed.  Thompson Brooks/Cole:  Belmont, CA. 2005


This blog is property of Edward Shore, 2016. 

Trigonometry Reduction Formula and Solving Simple Arcsine and Arccosine Equations

Trigonometry Reduction Formula and Solving Simple Arcsine and Arccosine Equations Some Background and Periodic Reduction Formulas ...