Computer Science Canada

Squaring and Square Roots

Author:  ArchAngel16 [ Tue Mar 22, 2005 5:23 pm ]
Post subject:  Squaring and Square Roots

Hey guys I am writing up a program to do Arithmetric and Geometric Series ect. but my problem is turing cant square things or do square roots as far as I know. I have no clue why I am writing it considering as I havent used turing in about a year lol. I guess its just a refresher in programming for me so that I can do Gr12 programming next year. Anyways any tips are appreciated on how to do these formulas

Author:  Naveg [ Tue Mar 22, 2005 5:27 pm ]
Post subject: 

3**2 = 9
4**2 = 16 etc....

sqrt(16)=4
sqrt(9)=3 etc....

Author:  Cervantes [ Tue Mar 22, 2005 8:47 pm ]
Post subject: 

Right, but don't forget that if you need to do something like the fourth root of 16:
code:

put 16**(1/4)


: