[Plain]/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)* Copyright and version Declaration of the program* All rights
Sin cos exp is calculated using the Taylor Formula and mclawin formula. To prevent the power operation index from being too high, it is easy to cause overflow when a large input parameter is calculated. Considering that sin and cos both use 2 * PI
The SIN function is to compute the sine function. It appears in the default common functions, math, and trigonometric functions of Excel functions.
Sin function grammar form: sin (number)
Sin function Application considerations:
1, number
Introduction to the formula of sin function
Grammar: SIN (number)
Number is the angle, in radians, that requires a sine.
Note: If the unit of the parameter is degrees, you can multiply PI ()/180 or use the RADIANS function to convert it to
The Math. sin () method in JavaScript is described in detail, and javascriptmath. sin
This method returns the sine of a number. The sin method returns a value ranging from-1 to 1, representing the sine of the parameter.Syntax
Math.sin( x ) ;
The
Describesin () returns the sinusoidal value of the X-arc.GrammarThe following is the syntax for the Sin () method:Import Mathmath.sin (x)Note:sin () is not directly accessible, you need to import the math module, and then call the method through the
The undefined reference to ' sin ' error occurs when compiling a C program with a mathematical function using the GCC compiler. This error is generally caused by a lack of libraries.
As a small program in the above diagram, the following problems
The first is the Taylor formula, but the formula brother does not remember it. If you are interested, it is not difficult to find out the implementation.
Second recursion, using three formulas
Sin (x) = 2 * sin (X/2) * Cos (X/2) --------------
The undefined reference to ' sin ' error occurs when compiling a C program with a mathematical function using the GCC compiler. This error is generally caused by a lack of libraries.
As a small program in the above diagram, the following problems
Back to: Teacher He curriculum teaching link project requirements"Project 1-sin Taylor Show Errors"Here is the Taylor display of the sin function:(Note: X takes a Radian value, not an angle value)A double Mysin (double x) was written for the sin
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.