# Help For A Newbie?

2 replies to this topic

### #1 Seroquel

Seroquel

Newbie

• Members
• 1 posts

• Calculators:

Posted 23 July 2009 - 01:13 PM

Hello,

I recently came into possetion of a Casio ClassPad 330 - I saw that there was a section specificly for the ClassPads - but I'm trying to write some basic programs for it. Here is the basic code that I have put together to solve pythagoras.

```SetDecimal
Input A
Input B
Print (A^2+B^2=C^2)
Print (x(C^2))```

x represents the square root symbol I don't know how to input that on a computer?

It displays the value for C^2 but the 5th line of code dosent seem to do anything. I would appreciate it if someone could tell me what it is I am doing wrong.

Edited by Seroquel, 23 July 2009 - 01:13 PM.

### #2 Guest_Jerry_*

Guest_Jerry_*
• Guests

Posted 23 July 2009 - 01:46 PM

Hey, i've spent an extensive amount of time playing with basic on the cp330 now, so any questions fire away.

For square root, you simply use the square root symbol available via the 2d menu on the keyboard of the calculator (or in manager) - or you can copy and paste this symbol: √

Put the √ symbol infront of what you want to sqrt.. i.e. √16

For setting/printing a expression you will want to do:

very quick off my head, no checking:

SetDecimal
Local Result, TempStr, OutStr
Input A
Input B
(A^2)+(B^2) ⇒ C
Print "(A^2+B^2=C^2)"
Result ⇒ √C
ExpToStr Result, TempStr
StrJoin "Result: ", TempStr, OutStr
Print OutStr

Will print C distance

That should work.. if you go to the download section, and download some of the app's and source code's ive uploaded - youll be sure to get most of the functions youll ever use out of them.

### #3 Guest_Jerry_*

Guest_Jerry_*
• Guests

Posted 23 July 2009 - 09:39 PM

just noticed a mistake i made..

Result ⇒ √C

is meant to be

√C ⇒ Result

(works using Formula ⇒ Variable)

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users