Jump to content




Pythagorean Theorem Calculator

lua computer

11 replies to this topic

#1 nateracecar5

  • Members
  • 94 posts

Posted 01 March 2013 - 12:05 PM

Hey all! I made this program to easily do Pythagorean Theorem for school work and wanted to post it.
This is actually two program: One to find the hypotenuse, and one to find the leg. There is an instruction file inside the folder that tells
you how to use the thing. Just put the programs in a computer or use the CC-Emulator and put it in the saves folder of it. I tested it and it has absolutely no errors (Except when you put in letters). Download and enjoy! I also added the feature that prints out what to write on your paper if you have to show your work. Please have fun!



Download link: Click here

#2 JustPingo

  • Members
  • 108 posts
  • LocationFrance

Posted 01 March 2013 - 01:02 PM

Oh ******* great program !
Cheater mode enabled lol.

In France, I'm in "4ème", and it's when we do Pythagorean Theorem :D I only need to translate your program ^^
Thanks you man !Now, do a function which it check if the triangle have a right angle

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 01 March 2013 - 01:05 PM

oh god pastebin please

#4 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 02 March 2013 - 09:08 AM

View Postpingoleon60, on 01 March 2013 - 01:02 PM, said:

Oh ******* great program !
Cheater mode enabled lol.

In France, I'm in "4ème", and it's when we do Pythagorean Theorem :D I only need to translate your program ^^
Thanks you man !Now, do a function which it check if the triangle have a right angle

Ahlala le théorème de pythagore.... le plus chiant je pense .... Bon courage pour ta 4eme !

Not sure if it will be in italic but i'm not sure for tge BBcode :/

#5 GeniusName3

  • Members
  • 45 posts

Posted 05 March 2013 - 10:30 AM

please add pics :)

#6 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 05 March 2013 - 02:52 PM

(*cough cough* you should do a midpoint and distance calculator. I would love to see one fully functional)

Checking the validity of a number is quite simple:

local num = read()
local check = tonumber(num)
if type(check) ~= "number" then
--We've got ourselves a badass'
else
--Everything checks out
end

With that being said, all you have to do is this:

repeat
local num = read()
local check = tonumber(num)
  if type(check) ~= "number" then
   print("Not a number")
   sleep(2)
  end
until type(check) == "number"

Here is a link to my caculator(Very outdated) that has Pythagorean Therorem Support

#7 CastleMan2000

  • Members
  • 195 posts
  • LocationThe trashcan where all Undertale trash is

Posted 06 March 2013 - 10:24 AM

View Postbjornir90, on 02 March 2013 - 09:08 AM, said:

View Postpingoleon60, on 01 March 2013 - 01:02 PM, said:

Oh ******* great program !
Cheater mode enabled lol.

In France, I'm in "4ème", and it's when we do Pythagorean Theorem :D I only need to translate your program ^^
Thanks you man !Now, do a function which it check if the triangle have a right angle

Ahlala le théorème de pythagore.... le plus chiant je pense .... Bon courage pour ta 4eme !

Not sure if it will be in italic but i'm not sure for tge BBcode :/
The BBcode for italics is [ i ] (text) [ / i ] (remove the spaces)

#8 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 06 March 2013 - 06:05 PM

View PostCastleMan2000, on 06 March 2013 - 10:24 AM, said:

View Postbjornir90, on 02 March 2013 - 09:08 AM, said:

View Postpingoleon60, on 01 March 2013 - 01:02 PM, said:

Oh ******* great program !
Cheater mode enabled lol.

In France, I'm in "4ème", and it's when we do Pythagorean Theorem :D I only need to translate your program ^^
Thanks you man !Now, do a function which it check if the triangle have a right angle

Ahlala le théorème de pythagore.... le plus chiant je pense .... Bon courage pour ta 4eme !

Not sure if it will be in italic but i'm not sure for tge BBcode :/
The BBcode for italics is [ i ] (text) [ / i ] (remove the spaces)

[i]text[/i]

No need for spaces :]

#9 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 07 March 2013 - 11:35 AM

Pastebin.....

#10 nateracecar5

  • Members
  • 94 posts

Posted 12 May 2013 - 08:51 PM

Getting pastebin now. I have to retrieve my code though lol!

#11 nateracecar5

  • Members
  • 94 posts

Posted 12 May 2013 - 08:54 PM

Doing a COMPLETE rewrite and making a UI and a settings file to work with the new Advanced Computers. Will also give printer functions and everything to make life easier.

#12 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 13 May 2013 - 02:56 PM

I can help with the GUI. I'm going to download your program and try to add a GUI(If I have a working GUI I will send you a PM).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users