basic of Modern algebra," "Elementary number Theory," such as books, it is best for you to turn first, which is helpful for you to understand this article. Don't be afraid, I try to make the language more popular, I hope this article can become a stepping stone to learn ECC.First, from parallel lines.Parallel lines, never intersect. No one doubts that: but in modern times this conclusion has been questioned. Will parallel lines intersect far and far away? No one has actually seen it. So "parall
straightness can be preserved. The results show that this is the most general requirement for mapping, and we can define a projective transformation of a plane as any mapping of points that maintain a straight line on a plane.
To understand why we need projective geometry, we start with the familiar Euclidean geometry. This is the geometry that describes the angle and shape of the object. Euclidean geometry is a major problem-we need to constantly infer some basic concepts of geometry-such as t
understanding of the public key algorithm. "The foundation of Modern Algebra" "Elementary Number Theory" and other books, it is better for you to flip first, which is helpful for you to understand this article. Don't be afraid, I will try to make the language more popular, I hope this article can become a stepping stone to learn ECC.
First, from the parallel line talk about.
Parallel lines, never intersect. No one doubted: but in modern times the conclusion was questioned. Will parallel lines
relational operator--------");
Console.dir (16> "5");
Console.dir ("A" > "5");
Console.dir (5
Multiplication
Console.dir (5* "5");
Console.dir (5* "a");//nan
Console.dir (5*nan);//nan
Console.dir (5*null); 0
Console.dir (5* undefined);//nan
Console.dir (5*5);//25
Here are the multiplication implicit conversion principles:
1, if 2 numeric values are numbers, then direct multiplication, (I believe everyone will, and primary mathematics, as well as to pay attention to
*nan);//nan
Console.dir (5*null); 0
Console.dir (5*undefined);//nan
Console.dir (5*5);//25
Here are the multiplication implicit conversion principles:
1, if 2 numeric values are numbers, then direct multiplication, (I believe everyone will, and primary mathematics, as well as to pay attention to the number of symbols), if multiply charge number value than the ECMAScript range of numerical representation, Returns either Infinity
when there is a certain harvest it. Above all is the personal opinion, if has any understanding not to be in place, welcome to propose, everybody studies together ha.
Attach some reference
=
0
' 0 '
[0]
[]
{}
'
NULL
[NULL]
undefined
NaN
[NaN]
' A '
Infinity
1
' 1 '
[1]
0
true
true
true
true
ECMAScript operators. For more information about js learning, see 2.9.5. Addition operators.
Addition operators (plus signs and minus signs) are usually the simplest operators. However, in ECMAScript, each addition operator has many special behaviors.
1. Addition operators:
The Code is as follows:
Var iResult = 1 + 2;Console. log (iResult); // outputs 3
Special features:
The number of operations is NaN and the result is NaN.
Infinity and
In JavaScript, mathematical operations can be implemented in two different ways:
1.+ 、-、 *,/,% and other operators.2. Use the Math object's calculation function. For example, use Math.pow (2,3) to calculate 2 of the 3-time side.
Unlike Java, mathematical operations in JavaScript do not throw any errors. The overflow of the calculation, divided by 0, and the root of the negative numbers are all legal, and the result is a special value in javascript: positive and negative
()); "Ten"
Alert (num.tostring (9)); "One"
alert (num.tostring); A
3. Bitwise operators pay attention to Nan and infinity
When using bitwise operators for Nan and infinity, both values are treated as 0来. For non-numeric application bit operators, the number () function is used first to convert the value to a value.
One thing to note is that negative numbers are unsigned to the right, and the uns
cases, JavaScript will automatically convert the value into a scientific notation, and in other cases, it is represented directly in the literal form.
1. the number before the decimal point is 21 more digits.
console.log(1234567890123456789012);// 1.2345678901234568e+21 console.log(123456789012365648787); //123456789012365660000
2. The number of digits after the decimal point is greater than 5.
console.log(0.0000006);//6e-7 console.log(0.000006); //0.000006
Value Range
Due to memory limi
can use toString () to return any hexadecimal integer.
var num = 10;alert(num.toString()); //"10"alert(num.toString(9)); //"11"alert(num.toString(16)); //"a"
3. Pay attention to NaN and Infinity when using bitwise operators.
When the bitwise operator is used for NaN and Infinity, both values are treated as 0. If a bitwise operator is used for a non-numeric value, the Number () function is used to conver
. Don't be afraid. I try to make the language more popular. I hope this article will become a stepping stone for learning ECC.
1. Start with parallel lines.
Parallel lines. No one is skeptical. :) However, this conclusion has been questioned in modern times. Will parallel lines interwork in distant places? In fact, no one has ever seen it. So "parallel lines, never intersection" is just a hypothesis (we think about the parallel principle of junior high school learning, there is no proof ). Now t
1. Additionvarbox=1+2 //3varbox=1+nan//nan, one for Nan is NanvarBox=infinity+infinity//InfinityvarBox=-infinity +-infinity//-infinityvarBox=infinity +-infinity//Nan, positive
Transfer from http://aikilis.tk/
If the scope of the data in the problem is clear, then the infinite setting is not a problem, in the ambiguous case, many programmers take 0x7fffffff as infinity, because this is the maximum value of 32-bit int. If this infinity is used only for general comparisons (such as the initial value of the min variable at the minimum), then 0x7fffffff is a perfect choice, but in mor
In node. JS source code, it is common to use various symbols to process strings as numbers. May be written by different people, the use of different styles. Basically there are some of the following.Convert a string to a number +A simple way to convert a number string into a number is to prefix it with a number + . VarSi= + ";//12 var SN = + ' -12 ' ;// -12 var SF = + ' 12.7 ' ;//12.7 var SS = + ' 12s ' ;//NaN *To convert using multipli
This article mainly introduces the mathematical operations in JavaScript. This article first explains some knowledge about mathematical operations, and then provides an example of operations. If you need a friend, you can refer to JavaScript, mathematical operations can be achieved through two operations:
1. +,-, *,/, %, and other operators.2. Use the computing functions of the Math object. For example, Math. pow (2, 3) is used to calculate the 3rd power of 2.
Unlike Java, mathematical operat
Introduction to mathematical operations in JavaScript and mathematical operations in javascript
In JavaScript, mathematical operations can be achieved through two operations:
1. +,-, *,/, %, and other operators.2. Use the computing functions of the Math object. For example, Math. pow (2, 3) is used to calculate the 3rd power of 2.
Unlike Java, mathematical operations in JavaScript do not throw any errors. The overflow, Division by 0, and opening of negative numbers are legal. The results are s
GetValue (left).
Let right explain the result of executing unaryexpression.
Make Rightvalue the GetValue (right).
Make Leftnum a Tonumber (leftvalue).
Make Rightnum a Tonumber (rightvalue).
Returns a specific operator (*,/, or%) Results that act on Leftnum and Rightnum
11.5.1 using the * operatorThe * operator represents multiplication and produces the product of the operand. The multiplication operation satisfies the commutative law. Because of the accuracy problem, mu
2.9.5. Addition OperatorsAddition operators (plus signs and minus signs) are usually the simplest operators. However, in ECMAScript, each addition operator has many special behaviors.1. Addition operators:Copy codeThe Code is as follows:Var iResult = 1 + 2;Console. log (iResult); // outputs 3 Special features:The number of operations is NaN and the result is NaN.Infinity and Infinity. The result is Infinity
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.