MATHEMATICS - JavaScript Codes
Description This code factorises the given number and also displays whether it is prime or not. Source Code <HEAD> <style type="text/css"> <!-- i ...

Description This code calculates the GCF of two or three given numbers. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function go(){ var tex ...

Description This code calculates the Horsepower of any machine. Source Code <BODY> <center> <form name="Calc"> <SCRIPT LANGUAGE="JavaScript&qu ...

Description This code converts Degrees to Radians and vice versa. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function ra_de() { var p ...

Description This code sorts the given array of numbers in Ascending order using Bubble Sort. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin fun ...

Description This code calculates the Fibonnaci sequence of given limit of numbers. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function f(n) ...

Description This code takes the Hypotenuse and the Adjacent angle as input and provides Cosine Angle as output. Source Code <SCRIPT LANGUAGE="JavaScript"> <!-- Begin fu ...

Description This code calculates the GCD and LCM of any two or three given numbers. Source Code <HEAD> <script type="text/javascript"> <!-- Begin function go ...

Description This code calculates the area of specified figures. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function doArea(num) { switch( ...

Description This code calculates the Equation of Line from its given coordinates. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function calcu ...

Description This code calculates the distance between the two airports. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var Orig=new Array(); ...

Description This code evaluates or reduces two given fractions. Source Code <HEAD> <script type="text/javascript"> var n1, n2, d1, d2, An, Ad, Op; var neg=1; ...

Description This code calculates the common factors of any two given numbers. Source Code <HEAD> <script> function findFactors() { var f = document.forms[0]; ...

Description This code changes the velocity from one unit of measurement to the other. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin fun ...

Description This code calculates the Compound Interest and the Amount using the given information. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Be ...

Description This code provides the day of the week from the date provided. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var months = new Arra ...

Description This code shows the relation between Energy and Work and calculates the other from the given one. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> ...

Description This code calculates the third value from the given two values. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function calculateti ...

Description This code calculates the Miles per Gallon of fuel used by a vehicle and estimates its cost per litre. Source Code <HEAD> <SCRIPT LANGUAGE="JavaScript"> ...

Description This code shows the direction with respect to latitude or longitude. Source Code <HEAD> <script type="text/javascript"> function calc(Location) { ...



