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
This is also for a friend who loves to ask. I don't know if there is any better way.
Your ad here
# Define ex 0.000001
Int main ()
Double X = 0.0, temp = 1.0, sin = 0.0;
Printf ("Please input a degree :");
Returns the sine value of a corner.
The number argument can be any valid numeric expression that represents a corner as radians.
The Sin function takes a corner and returns the ratio on both sides of the
Returns the sine of an angle.
NumberA parameter can be any valid numeric expression that represents an angle as a radian.Description
SinThe function obtains an angle and returns the ratio of the two sides of the right
We know that the multiplication of two n-digit integers, if the regularAlgorithmThe time complexity is O (n2 ). However, using the fast Fourier transformation, the time complexity can be reduced to O (n logn ).
Assume that we want to calculate
The formula is as follows, unit meters:1th latitude and Longitude: lng1 LAT12nd latitude and Longitude: lng2 lat2Round (6378.138*2*asin (sqrt (POW (LAT1*PI ()/180-lat2*pi ()/180)/2), 2) +cos (Lat1*pi ()/180) *cos (LAT2*PI ()/180) * Pow (Sin
1. Coordinate system:Flash coordinate system and mathematical coordinate system: the X axis is the same, and the y axis is the opposite.[Mathematical coordinate system][Coordinate system in Flash]2. Conversion between Angle and Radian:(1) radians:
Calculate the distance between two-point latitude and longitude under MySQL(2012-12-25 13:21:09)reproduced
The formula is as follows, unit meters:1th latitude and Longitude: lng1 LAT12nd
Turn How are these longitude determined? The earth is constantly spinning around its axis (the earth's axis is an imaginary line through both the north and the South Poles and the center of the Earth), and the Earth's waist draws a large circle
How are these longitude determined? The earth is constantly spinning around its axis (the earth's axis is a center of the north-south poles and the Earth.Imaginary line), in the Earth's waist draw a large circle perpendicular to the axis, so that
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:
and provide relevant evidence. A staff member will contact you within 5 working days.