been questioned. Will parallel lines intersect far and far away? No one has actually seen it. So "parallel lines, never intersect" just assume (everyone think of junior high school learning parallel axiom, is not proven). Since it is possible to assume that parallel lines never intersect, you can also assume that parallel lines intersect far and far away. That is, parallel lines intersect at Infinity Point p∞ (Please close your eyes, imagine that
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
*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
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
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
30 things to be done after minimal RHEL/CentOS 7 installation (5)30 things to be done after minimal RHEL/CentOS 7 installation (5) 25. install Linux Malware Detect (LMD)
Linux Malware Detect (LMD) is an open-source Linux malicious program scanner released under the GNU GPLv2 protocol. It is specially designed for vulnerable host environments. You can view the complete installation, configuration, and usage of LMD:
Install LMD and use it with ClamAV as an anti-virus Engine
26. Use
Comparison of VaR read/write and function read/write, get/set read/write Efficiency
VaR is about 4 times faster than function,
GET/set is similar to function
95VaR read: 567VaR write: 563[SWF] D: \ flexproject \ testspeed \ bin-Debug \ testspeed.swf-2,091 bytes after decompressionFunction read: 1860Function write: 2117GET/set read: 1927GET/set write: 2119
// Test code
Package {Import flash. display. Sprite;Import flash. utils. gettimer;
Public class testspeed extends Sprite{Public Function tes
[QWERTY layout]
We should be familiar with the QWERTY layout, the world's most popular keyboard layout.
As of last year's exposure and use of the Dvorak layout, I used the QWERTY layout for more than a decade. The maximum CPM (number of clicks per minute) in the test at http://speedtest.10fastfingers.com/is 475.
I believe that more than 99% of the readers reading this article are using the QWERTY layout.
Heat map
This heat map shows the an
usually , we buy the server servers , do not know the speed of the performance how ?Let's teach you a way to testwget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/88/66/wKioL1f2B7DzZlUrAAA-Ivs_c9U742.png "title=" 1.png " alt= "Wkiol1f2b7dzzluraaa-ivs_c9u742.png"/>If you see the following follow the prompts to fix the commandwget--no-check-certificate https://raw.github.com
Linux under the speed of the Speedtest command, it is written in the Python language, for python2.4-python3.4 and other versions. Here's how:1. Download this filewget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py(Note: The former is speedtest-cil, this article takes Centos7 as an example)2. Modify the file name, increase the execution
. 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
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
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.