RaiseErrorTextThe angle is Clibrsprintf52f angle degrees Get Arctangent 2

# Raiseerrortextthe angle is clibrsprintf52f angle

• Test Prep
• 334

This preview shows page 187 - 190 out of 334 pages.

TheApplication().RaiseErrorText("The angle is " + Clib.rsprintf("%5.2f", angle) + " degrees.") } Get Arctangent 2 Method The Get Arctangent 2 method returns an approximate arctangent of the value that the y argument contains divided by the value that the x argument contains, expressed in radians and ranging from negative pi through pi. To determine the quadrant of the result, this method uses the signs of the arguments. It is intentional and traditional that the argument named y is the first argument and the argument named x is the second argument. Format Math.atan2( y, x ) Table 108 describes the arguments for the Get Arctangent 2 method. Example for the Get Arctangent 2 Method The following example finds the roof angle necessary for a house. It is identical to the example for the Get Arctangent method except this example uses the Get Arctangent 2 method. For more information, see “Example for the Get Arctangent Method” on page 186 : function RoofBtn2_Click () { var height = 8; var span = 16; var angle = Math.atan2(span, height)*(180/Math.PI); Table 108. Arguments for the Get Arctangent 2 Method Argument Description y The value on the y axis. x The value on the x axis.
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Mathematical Methods 188 TheApplication().RaiseErrorText("The angle is " + Clib.rsprintf("%5.2f", angle) + " degrees.") } Get Ceiling Method The Get Ceiling method returns the smallest integer that is not less than the value that the number argument contains. If this argument already contains an integer, then this method returns the value of this argument. If it cannot convert the value to a number, then it returns the following value: NaN This method uses the same argument as the Get Absolute Value method. For more information, see Table 107 on page 185 . Format Math.ceil( number ) Example The following example creates a random number between 0 and 100 and displays the integer range in which the number falls. Each run of this code produces a different result: var x = Math.random() * 100; TheApplication().RaiseErrorText("The number is between " + Math.floor(x) + " and " + Math.ceil(x) + "."); Get Cosine Method The Get Cosine method returns an approximate cosine of the value that the number argument contains, expressed in radians.The return value is between negative 1 and 1. The angle can be positive or negative. If this method cannot convert the value to a number, then it returns the following value: NaN This method uses the same argument as the Get Absolute Value method. The only difference is that the number argument for the Get Cosine method includes an angle in radians. For more information, see Table 107 on page 185 . Format Math.cos( number ) Example The following example finds the length of a roof, given the roof pitch and the distance of the house from the center of the house to the outside wall of the house:
Methods Reference Mathematical Methods Siebel eScript Language Reference Version 8.1, Rev. A 189 function RoofBtn3_Click () { var pitch; var width; var roof; pitch = 35; pitch = Math.cos(pitch*(Math.PI/180)); width = 75; width = width / 2; roof = width/pitch; TheApplication().RaiseErrorText("The length of the roof is " + Clib.rsprintf("%5.2f", roof) + " feet.");

#### 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

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes