JavaScript Programmer’s Reference // (Cheap web hosting) Register the new function

JavaScript Programmer’s Reference // Register the new function Math.constructor.prototype.sinh = sinh; // Test the Math.sinh() method document.write(Math.sinh(2)); document.write(”
“); Math.sqrt() (Function) The square root of the input argument. Availability: ECMAScript edition 2 JavaScript 1.0 JScript 1.0 Internet Explorer 3.02 Netscape 2.0 Netscape Enterprise Server 2.0 Opera 3.0 Property/method value type: Number primitive JavaScript syntax: -Math.sqrt(aValue) Argument list: aValue A meaningful numeric value This function computes the square root of the input argument. Special boundary conditions that affect the results are: Argument Result +infinity +infinity 0 0 < 0 NaN NaN NaN The exact value yielded by this function may vary slightly from implementation to implementation, due to differences in the underlying precision of the implementations, math routines, and the specific algorithm selected to evaluate this function. See also: Math object, Math.pow() Cross-references: ECMA 262 edition 2 section 15.8.2.17 ECMA 262 edition 3 section 15.8.2.17 1420

Leave a Reply