Showing posts with label fx-CP400. Show all posts
Showing posts with label fx-CP400. Show all posts

Sunday, October 11, 2020

Casio Classpad: Theorem of Sós

Casio Classpad:  Theorem of Sós


Introduction: The Theorem of Sós

A set of triple rational numbers (a, b, λ) is considered to be a H-triple if

c = √(a^2 - 2 λ a b + b^2) is also a rational number.  (I)


Heron Triple

Should the set of rational numbers (a, b, λ) can be further test to see if to is also a Heron triple.  That criteria (see source) requires for some numbers λ' and A (area):

λ' = √(1 - λ^2) is a positive rational number, and

A = λ' * abs(a * b) / 2 is a natural number  (positive integer)


This implies for all cases for Heron Triples that abs(λ) < 1, or -1 < λ < 1.

If the H-triple passes, then it becomes a Heron triple and the sides (a, b, c) (see (I) above) are the lengths of a Heron triangle.  

It is possible that an H-triple is not a Heron triple.  

Today's blog focuses on H-triples.  


Generating H-Triples

Given relatively prime integers m and n (where gcd(m,n) = 1) and μ, an H-triple can be generated by the following equations:


(II)

a = μ * (m^2 - n^2)

b = μ * (2*m * (n + λ*m))

c = μ * (m^2 + 2*λ*m*n + n^2)

For a > 0, this requires that m > n.  In the program htrigen, I assume that μ = 1.  In the program, u = λ

Casio Classpad Program:  htrigen

(fx-CP400 and fx-CG500)


'2020-09-15 EWS

'H Triple

Local a,b,c,m,n,u

Input m, "m > n", "m?"

Input n, "m > n", "n?"

Input u, "λ? (rational)"

If gcd(m,n)≠1

Then

Print "m and n are not"

Print "relatively prime."

Stop

IfEnd

(m^2 - n^2) ⇒ a

(2 × m × (n + u × m)) ⇒ b

(m^2 + 2 × u × m × n + n^2) ⇒ c

Print "H-Triple:", ColorMagenta

Print "{a,b,λ}="

Print {a,b,u}, ColorBlue

Print "c="

Print c


Example:

m = 7, n = 3, λ = 2/3


Result:

a = 40, b = 322/3, c = 86


Testing the Theorem of Sós


The program htrist tests the criteria for the triple (a, b, λ). 


Testing numbers in a program to see that they are rational is not as easy as it appears. Thankfully, the functions numerator and denominator can be used on the Classpad.  The numerator function converts the number into an exact fraction and extracts its numerator.  Similarly, the denominator function converts the number into an exact fraction and extracts its denominator.  


For an irrational number such as √2, the Classpad determines the exact fraction to be 

√2/1.


Casio Classpad Program:  htrist

(fx-CP400 and fx-CG500)


'2020-09-15 EWS

'H Triple test

Local a,b,c,n,d,u

Input a

Input b

Input u, "λ? (rational)"

√(a^2 - 2 × u × a × b + b^2) ⇒ c

numerator(c) ⇒ n

denominator(c) ⇒ d

ClrText

Print {n, d}

If frac(n) = 0 and frac(d) = 0

Then

Print "H Triple", ColorGreen

Print {a, b, u}

Print "c ="

Print c

Else 

Print "No Solution", ColorRed

IfEnd


Example:

a = 85, b = 374, λ = 1


Results: 

c = 289,  n = 289, d = 1


Source:


Halbeisen, Lorezn and Hungrebühler, Nobert.  "Heron triangles and their elliptic curves" Journal of Number Theory 213 (2020) 232-253.  https://doi.org/10.1016/j.jnt.2019.12.005 


Eddie


All original content copyright, © 2011-2020.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 


Sunday, April 3, 2016

Casio Classpad fx-CP400: Defining Functions

Casio Classpad fx-CP400:  Defining Functions

Using the Define command with the Classpad

A lot of formulas can be created using the Define command on the Casio Classpad.  For this blog I am using the fx-CP400.  My preference is to use the Main application, and call the Define command from the Action>Command submenu.  The expressions are stored as Functions.  If you want to transfer functions (and programs) from the fx-CP400 to a computer drive, export them to the Save-F folder first and then connect the Classpad to the computer.


Fibonacci Numbers

fibon(n) = approx((1+√5)^n – (1-√5)^n)/(2^n * √5)

The approx command is used in order to force a simplified numerical answer. 



Error Function

erf(z) = 2/√π * ∫ (e^-x^2 dx from 0 to z)

I think numerical integrals return approximate answers no matter what, please correct me if I am wrong.



Digital Root:  Counting all digits of a number, repeating the process until you get a single digit (0-9)

dr(n) = 1 + mod(n-1, 9)

I could only find the mod function in the catalog.  Unlike most Casio calculators, the Classpad’s mod function accepts negative numbers and non-integers.



Area of a Regular Polygon

aregpoly(n,s) = (n*s^2) / (4 * tan(180°/n))

The degree symbol (°) is needed to allow proper calculation regardless of angular mode.  The degree symbol is found in the Trig soft menu.



Great Circle: Distance between two places in kilometers

Note:

*  In order for the function to work properly, the Degree mode must be selected.

*  You can enter degrees in terms of degrees, minutes, seconds by choosing the DMS template.  This template is in the Math1 soft keyboard and is represented by three boxes (□ □ □) next to toDMS.  You can also call the template by pressing Action/Interactive, Transformation, DMS, dms.   The dms command’s syntax is  dms(degrees, minutes, seconds) and transforms the input into degree decimals.

Example:
Los Angeles,  N: 34°13’, E: -118°15’;   Tokyo,  N: 35°41’22.22”, E: 139°42’30.12”
Distance ≈ 8,803.002688 km

Formula (for km):
Distance ≈ cosˉ¹ (sin N1 sin N2 + cos N1 cos N2 cos (E1 – E2)) * 6371 * π / 180

If you want US miles, replace 6371 with 3959.



This blog is property of Edward Shore, 2016.


Wednesday, March 30, 2016

A Quick Look At the Casio Classpad fx-CP400

Casio Classpad fx-CP400

Price: I paid $142.99 on Amazon, some vendors charge up to $169.00
Screen: 4.8" diagonal 
Memory: 515,000 bytes
Power: 4 AAA Batteries (not rechargeable)

Maybe a little late, but I ordered the Casio Classpad fx-400.  I got warm to using stylus again after playing Super Mario Maker.  Using the stylus kind of makes me wish that I could use a stylus with the HP Prime and my iPod Touch.  



The Classpad II (fx-CP400) is an update to the Classpad 330.  The color, backlit screen is a great upgrade to the Classpad, which previously had a monochrome screen.  The characters and graphs are nice and crisp.  Like the previous Classpads, the Classpad II has CAS (computer algebra system).  

New to the Classpad II is the ability to rotate the screen horizontally and vertically.  To do so, tap the Rotate button.  The screen does not rotate automatically.  


I like the physical keyboard.  The keys are responsive the font colors on the most part, are appropriate.  Casio could have made the Shift cyan instead of navy blue.  I would not have mind the keyboard having the basic scientific functions on it (sin, cos, tan, e^x, ln, etc.).  Needless to say, you will be using the virtual keyboard a lot.  Thankfully, the virtual keyboard is bigger and much easier to use than the 330. 

The manual is divided into two parts: the main manual and a manual of examples.  After playing with the Classpad for a short time, I find the  manual of examples to be helpful.  



What impresses me about the Classpad is that you can select equations by the stylus.  You can execute algebra and CAS commands, drag them to the graph screen,  and drag them to the graph database.  The variables are universal and the Apps are seemingly integrated, at least better integrated than the other Casio graphing calculators.  Features include spreadsheets, which seems to work really well, sequence plotting, differential equation plotting, and financial calculations.  Below are some additional screen shots. 




This blog is property of Edward Shore, 2016.  





Saturday, January 12, 2013

Swörk Coffee and My Feelings About the Upcoming TI-84+ C and Casio ClassPad fx-CP400

Hi everyone! Today I coming to you from Swörk Urban Coffee Bar in Eagle Rock, CA (Los Angeles). It is a beautiful and sunny - but cold - Saturday morning.

in 2013, Casio and Texas Instruments are going to offer updates two of their graphing calculators: Casio's ClassPad and TI-84+.

Casio ClassPad fx-CP400 (Summer/Fall 2013)

Just in case you are not familiar with Casio ClassPad's series - in the United States, they are not sold in office stores and popular shopping marts (they have to bought online), here is a short introduction:

ClassPad 300 and 330

In 2003, Casio released the ClassPad 300 and a few years later, the 330, which I have. The ClassPad is significantly larger than the typical graphing calculator. The calculator has a 4.8" grayscale screen and a super basic keyboard. Almost everything that is done using the calculator's soft-keyboard and menu. The keyboard is accessible by touch or by the provided stylus.

The features of the 330 are rich (partial list):
* Over 500,000 bytes of RAM (that's a lot of programs!) and 5.4 MB ROM
* A mini-USB port
* Screen Resolution: 160 × 240
* CAS (Computer Algebra System)
* Geometry Application
* 3D and Differential Equation Graphing
* The ability to select equations, drag them, drop them, copy them, and graph them instantly.

In preparation for this blog entry, I dusted my ClassPad 330 and got reacquainted with it. To be honest, I forgot how awesome the ClassPad is. Here are some pics of the 330:

The Updated ClassPad fx-CP400

The ClassPad fx-CP400 is featured to have:
* A true-touch screen - which must mean it is more touch friendly. A stylus will still be provided.
* The calculator can operate in portrait or landscape mode.
* The screen will be in color, which I presume to be similar to the current Casio Prizm.
* Resolution increases to 328 × 528.
* The soft keyboard will have bigger keys.
* 500 KB RAM, 5.5 MB ROM, 24 MB USB Flash Drive - same programming space as of the 330.

I am excited to get the fx-CP400 when it gets released. This looks like it will be a solid calculator and become the high-end Casio calculator. I am curious to about how the ClassPad operates in landscape mode. 99% of the time I use my iPad in landscape mode and enjoy the interface much better than the portrait landscape.

Cost? I read anywhere from $150 to $200, the former most likely.

Sources and links:

News release of the fx-cp400 (11/27/2012)

Message thread from omnimaga.org about the fx-CP400

TI-84+ Color

During Spring 2013, Texas Instruments will release an update to the TI-84+ series. The big update is that the new TI-84+ will have a color screen, similar to the current TI nSpire CX line.


In the case that you are not familiar with the TI-84+, the current model looks like what is displayed in the picture, only with a grayscale screen and a bigger font.

Some of the features of the upcoming TI-84+ C Silver Edition are:
* Memory: The ROM increases to 3.5 MB, but the RAM decreases to 21,000 bytes. This means less space for programming than the current TI-84+.
* Screen Resolution increases from 96 × 24 to 320 × 240. The resolution will be the same as the TI nSpire CX (and CX CAS).
* The TI-84+ C Silver Edition will have a rechargeable battery. TI states that a charge can last from five days to two weeks - depending on use.
* While the TI-84+C Silver Edition has an updated operating system, the commands and functionality will be similar to the TI-80s family.
* The calculator's modes will be displayed on top of the screen at all times.

I am not happy about the decrease in programming memory! 24,000 bytes is towards the low end already. The TI-84+ is really not for writing long programs - short quick ones will do. The backlit screen is a nice plus. Two reasons why I like backlit screens: (1) the screen is easier to read and (2) I get better pictures for the blog.

The TI-84+ will continue to be an application based calculator. I am hoping for in the update is a grid-like icon menu when I press the APPS key instead of a list. I am happy that the TI-84+ C Silver Edition will have the modes listed on top of the screen, as well as a battery indicator - both welcome additions.

Cost? I am read that prices are speculated between $100 to $150. I am really hoping its more towards $100, since TI's nSpire CX has a $150 price tag. I would guess about $130. Still - if TI releases the TI-84+ C in March - that would most likely become my birthday present.

Sources and links:

Texas Instrument's Press Release: TI-84+ C Silver Edition

Article from Tech Powered Math regarding the TI-84+ C Silver Edition

Verdict

At this point I am more excited about the fx-CP400 than the TI-84+ C Silver Edition. Most likely I plan to buy both calculators. I am happy that newer calculators have color, backlit screens. Not only they give the calculator a 21st century look, they are easier to read.

That is it for now, take care and have a great day!

Eddie



This blog is property of Edward Shore. 2013

RPN HP 12C: Fibonacci and Lucas Sequences

  RPN HP 12C: Fibonacci and Lucas Sequences Golden Ratio, Formulas, and Sequences Let φ be the Golden Ratio: φ = (1 + √5) ÷ 2...