Title DescriptionWrite a function to find the value of Sinh (x), the approximate formula for Sinh (x) is Sinh (x) = (ex-e-X)/2, where a function is used to find the ex . The result retains two decimal places.InputXOutputThe value of the Sinh
[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
Double my_sinh (Double X)
{
Double ret;
If (x >=0.0)
{
Ret = exp (X );
Return (ret-1.0/RET)/2.0;
}
Else
{
Ret = exp (-x );
Return (1.0/ret-RET)/2.0;
ABS ()
Seek absolute value
ACOs ()
Seeking the inverse cosine
ASIN ()
Ask for the inverse of the string
Atan ()
Ask for anyway cut
ATAN2 ()
To find the tangent, to
ABS
Prototype: extern int ABS (int x );
Usage: # include
Function: calculates the absolute value of integer x.
Description: calculation | x |. If X is not negative, X is returned. Otherwise,-X is returned.
Example:
// Abs. c
# Include # Include
Common mathematical functions in php tutorials
The tanh () function returns the hyperbolic tangent.
SyntaxTanh (x) parameter descriptionX is required. A number.
DescriptionReturns the hyperbolic tangent of x, defined as sinh (arg)/cosh (arg ).
*/
The tanh () function returns the hyperbolic tangent.SyntaxTanh (x) parameter descriptionX is required. A number.DescriptionReturns the hyperbolic tangent of x, defined as sinh (arg)/cosh (arg ).*/Echo tanh (-m_pi); // output-0.996272076221Echo "
C language Sin () function: sine functionheader file:
#include
The sin () function is used to find the sine value of a given value, and its prototype is:
Double sin (double x);
The value given by the parameter (radians).
This unit contains high-performance arithmetic, trigonometric, logarithmic, statistical and financial calculations and FPU program functions to complement the mathematical routines in the Delphi language System.pas unitAttention1) For some functions,
Feel that some netizens always put forward some very basic questions, for example, there is no function to achieve such functions ah, what is the function of Ah, what the format is, and so on, but also feel their understanding of the lack of Oracle
This article is not ready to introduce all of the Oracle functions, in the current situation, I do not have this time, need to learn too much, to spend most of the time on learning to use the technical aspects:), so if you are ready to learn all the
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.