Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Pythagorean Theorem
One of geometry's most useful formulas, the Pythagorean Theorem, can be applied to the numbers you enter in JavaScript! Just enter 'A' and 'B' and the script solves for 'C.' Neat!
The Pythagorean Theorem
( a
2
+ b
2
= c
2
)
2
+
2
=
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available online free at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function solvepy(form) { a = parseInt(form.a.value); b = parseInt(form.b.value); form.c.value = Math.sqrt(a*a + b*b); } // End --> </script>
Insert into <BODY>
<form> <center> The Pythagorean Theorem <p> <tt>( a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup> )</tt> <p> <input type=text name=a size=3><sup>2</sup> + <input type=text name=b size=3><sup>2</sup> = <input type=text name=c size=8> <p> <input type=button value="Solve" onClick="solvepy(this.form)"> </form> </center>
Other Options