Format MathSQRT12 Square Root 2 Property The Square Root 2 property stores the

Format mathsqrt12 square root 2 property the square

This preview shows page 185 - 188 out of 334 pages.

Format Math.SQRT1_2 Square Root 2 Property The Square Root 2 property stores the number value for the square root of 2. This value internally is approximately 1.4142135623730951. Format Math.SQRT2 Get Absolute Value Method The Get Absolute Value method returns the absolute value of the value that the number argument contains. If it cannot convert this value to a number, then it returns NaN. Format Math.abs( number ) Table 107 describes the arguments for the Get Absolute Value method. Get Arc Cosine Method The Get Arc Cosine method returns the arc cosine of the value that the number argument contains, expressed in radians from 0 to pi. If any of the following situations are true, then it returns NaN: The method cannot convert the value to a number. The value is greater than 1 or less than negative 1. Table 107. Arguments for the Get Absolute Value Method Argument Description number A numeric literal or numeric variable.
Image of page 185
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Mathematical Methods 186 This method uses the same argument as the Get Absolute Value method. For more information, see Table 107 on page 185 . Format Math.acos( number ) Get Arcsine Method The Get Arcsine method returns an approximate arcsine of the value that the number argument contains expressed in radians in the range of negative pi/2 through pi/2. If any of the following situations are true, then this method returns NaN: It cannot convert the value to a number. The value is greater than 1 or less than negative 1. This method uses the same argument as the Get Absolute Value method. For more information, see Table 107 on page 185 . Format Math.asin( number ) Get Arctangent Method The Get Arctangent method returns an approximate arctangent of the value that the number argument contains, expressed in radians and ranging from negative pi/2 through pi/2. This method assumes the value that the number argument contains is the ratio of the following sides of a right triangle: The side that is opposite of the angle that this method must calculate The side that is adjacent to the angle It returns a value for this ratio. This method uses the same argument as the Get Absolute Value method. For more information, see Table 107 on page 185 . Format Math.atan( number ) Example for the Get Arctangent Method The following example calculates the roof angles that are necessary for a house that includes the following dimensions: An attic ceiling height of 8 feet at the roof peak
Image of page 186
Methods Reference Mathematical Methods Siebel eScript Language Reference Version 8.1, Rev. A 187 A 16 foot span from the outside wall to the center of the house The Get Arctangent method returns the angle in radians. To convert the value to degrees, it multiplies it by 180/PI. To examine how the Get Arctangent method is different from the Get Arctangent 2 method, you can compare it to the example in the “Example for the Get Arctangent 2 Method” on page 187 topic. These examples return the same value: function RoofBtn_Click () { var height = 8; var span = 16; var angle = Math.atan(height/span)*(180/Math.PI); TheApplication().RaiseErrorText("The angle is " +
Image of page 187
Image of page 188

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors