In the project, the approximate value of asin (x) needs to be quickly solved. It was originally thought that using the Taylor expansion would be faster, and the result would be twice slower than the native one.
Math. AsinTime elapsed: 9 msGen 0: 0Gen 1: 0Gen 2: 0Maclaurin. AsinTime elapsed: 17 msGen 0: 4Gen 1: 0Gen 2: 0
Ladies and gentlemen, who has the ability to improve?
Appendix:
Http://www.mathportal.org/formulas/pdf/taylor-series-formulas.
The ASIN () method returns the sine of the X, expressed in radians.
Grammar
The following is the ASIN () method syntax:
ASIN (x)
Note: This function is not directly accessible, so we need to import the math module and then call this function with the static object of math.Parameters
X-This must be within the range of a numeric value of 1 to 1, and if
DescribeASIN () returns the arc value of the sine of X.GrammarThe following is the syntax for the ASIN () method:Import Mathmath.asin (x)Note:ASIN () is not directly accessible, you need to import the math module, and then call the method through the math static object.Parameters
X---values from 1 to 1. If x is greater than 1, an error is generated.
return valueReturns the arc value of the arc sine of X.InstanceThe following shows an example of
Returns the inverse hyperbolic sine of a number by the Asinh () function. The ASIN () function returns the inverse of a different value, and the result is a radian value between-PI/2 and PI/2. The Acosh () function returns the inverse hyperbolic cosine of a number. The ACOs () function returns the inverse cosine of a number. The ABS () function returns the absolute value of a number. The mail () function allows you to send e-mail directly from a scrip
This article mainly introduces the use of Math. asin () in JavaScript, which is the basic knowledge in JS beginners. If you need it, you can refer to this method to return the arc sine of radians. The ASIN method returns a value between-1 to 1, x-pi/2, and PI/2 radian. If the number value exceeds this range, NaN is returned.
Syntax
Math.asin( x ) ;
The following is the detailed information about the par
Introduction to Math. asin () in JavaScript
This method returns the arc sine of The radian number. The ASIN method returns a value between-1 to 1, x-pi/2, and PI/2 radian. If the number value exceeds this range, NaN is returned.
Syntax
1
Math. asin (x );
The following is the detailed information about the parameters:
X: a num
Introduction to Math. asin () in JavaScript, arcsin Function
This method returns the arc sine of The radian number. The ASIN method returns a value between-1 to 1, x-pi/2, and PI/2 radian. If the number value exceeds this range, NaN is returned.Syntax
Math.asin( x ) ;
The following is the detailed information about the parameters:
X: a number
Return Value:
Returns the arc sine of a radian number.Example
September 08 Admission, July 12 graduation, ended my happy and rich university life in the Software Institute. This series is a review of the four-year professional curriculum study, indexed in: http://blog.csdn.net/xiaowei_cqu/article/details/7747205
Lookup algorithmThe lookup algorithm looks for a particular target in the existing sequence (list), requiring that each record in the sequence must be associ
Resolve the SQL Server to focus on the removal (Bookmark Lookup, RID Lookup, Key Lookup), bookmarkrid
Preface
The previous sections focus on basic content. In this section, we will talk about index performance optimization. When processing big data, we first think of indexes. Once such a problem occurs, we are in a hurry, why are basic skills rarely used for vari
enrolled in September 08, graduated in July 12, and ended my happy and rich college life at the Software Academy. This series is a review of four-year professional course studies, indexed in: http://blog.csdn.net/xiaowei_cqu/article/details/7747205Find algorithmThe lookup algorithm finds a specific target in the existing sequence (list), requiring that each record in the sequence must be associated with a keyword (key) in order to be searched. The
Recently summed up the principle of the major sequencing algorithm, and the implementation of it, thinking of the search algorithm summed up, today began to summarize the search algorithm.Needless to say, this article starts with the simplest search algorithm, and then complements the complex two-fork search Tree Lookup (BST) and B-tree, the + + tree lookup, and hash lookup.As the name implies, the search i
Tags: Sel program solution explained City HTM IPA needsObjectiveThe previous sections are the basic content, this section we talk about the index performance optimization, when the big data processing when the first thought is the index, once encountered such a problem is rushed, all kinds of search data, why not usually solid basic skills, we are simple and simple, short content, in-depth understanding, rather than a problem to the box to die , immediately give the solution, throw the problem,
Objective
The previous sections are all about the basics, and we'll talk about index performance optimization in this section, when the large data processing first thought is the index, once encountered such a problem is a rush, all kinds of information, why not usually solid basic skills, we are simple, short content, in-depth understanding, rather than a problem to the box to die , immediately gives the solution, throws the question, then solves the problem, you get has not.
Bookmark
C Language Search Algorithm order lookup, binary search (binary find), the recent test to use, the Internet also has a lot of examples, I think I wrote to understand some.
Sequential Lookup/*Sequential Lookup order lookups are the exact locations of the same number of given keywords in a known no (or ordered) Order queue. The principle is to have the keyword
Ps and grep lookup eliminate grep self lookup and psgrep lookup eliminate
It is very convenient to use ps-def | grep to find the process. The last line will always grep itself.
$ Ps-def | grep dragonfly-frameworkdean 5273 5272 0 00:00:00 pts/5 newlisp. /dragonfly-framework/newlisp-redirection.lsp-http-d 8080-w. dean 5491 5229 0 00:00:00 pts/16 grep -- color =
Name lookup of C ++: qualified name lookup1. Introduction
In C ++, Name lookup is a process of finding the corresponding statement through name. For a function, name lookup may match multiple declarations. If it is a function, you can use Argument-dependent lookup to find the statement. If it is a function Template, yo
You can configure the Lookup transformation to use a non-persistent or permanent cache. After a successful session based on the Find cache persistent attribute, PowerCenter will save or delete the lookup cache file.If the lookup table does not change between sessions, you can configure the Lookup transformation to use
Tag: Control property Type ISP SDN get document void downThe last section discusses the Netop.core of the application system configuration information processing, for Netop.core the most core service-class factory/Object lookup service of course to use the configuration services, and so on.For the Net class factory/Object lookup service, the famous spring.net (which corresponds to Java's spring---called lig
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.