artificial intelligence has been a Turing test for nearly a century, but I think the Turing test is a far-fetched test to determine whether life cannot be relied upon for such tests. Must begin with the essential meaning of life. And this "self-awareness" is possible-see if you can identify yourself. It suddenly occurred to me that the whole recursive theory was about self-awareness. A recursive function is a form of life that is self-aware-so powerful that when recursive function calls itself
of the binary code;2 "To find the binary of the anti-code, will be 0 to replace 1, 1 is replaced by 0;"3 "Get the binary Anti-code plus 1.// 18 binary code 0000 0000 0000 0000 0000 0000 0001 0010// negation code 1111 1111 1111 1111 1111 1111 1110 1101// Anti-code plus 1 1//———————————————————————————— ————————————————————————————————————————————————// 1111 1111 1111 1111 1111 1111 1110 1110
2.9.5, additive operator
Additive operators (that is, plus and minus signs) are usually the simplest operators, but in ECMAScript, each additive operator has a large number of special behaviors.
1. Addition Operator:
Copy Code code as follows:
var iresult=1+2;
Console.log (Iresult);//outputs 3
Particularity:
A certain op is Nan, and the result is Nan.
Infinity Plus infinity, the
the technique of setting infinite constants in programmingIf 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 p
of 134217726.
3. boolean operator 3. 1. Non-logical
Logical non-operator (!) This operator can be used for any value in ECMAScript to return a Boolean value. When this operator is used for the value, the current value is first converted to a Boolean value, and then reverse it. The specific conversion rules are as follows:
I. If the operand is an object, false is returned;
Ii. If the operand is a Null String, true is returned;
Iii. If the operand is a non-null string, false is returned;
Iv. If t
rules: Different values to get 1".8, Boolean operators: Logical non (not) logic and (and) logic or (or) 3 operations.9, logical non (!) ) can be used with any data type and returns a Boolean value. Rules for logical non-operator adherence:1) null, undefined, NaN, empty string, 0 will return true;2) returns false for non-empty strings, objects, non-0 values (including Infinity Infinity) Summary : You can d
default all integers in ECMAScript are signed integers.Of course there are unsigned integers, and for unsigned integers the 32nd bit no longer represents symbols because unsigned integers can only be positive numbers, unsigned integers because they have one extra bit to represent a larger number.When you apply a bit operation to a special Nan and infinity value, both values are treated as a limit.If you apply a bitwise operator to a non-numeric value
operatorAutomatic type conversions are performed in cases where the operand is not a numeric value.1. Multiplication (*)Special rules:1, the operand is the numerical value, performs the conventional multiplication computation;2, there is Nan, then nan;3, Infinity by 0, for Nan;4, Infinity by non 0, for Infinity or-infinity
type is only two literals: true and false,true do not necessarily equal 1,false not necessarily equal to 0.
Conversion rules for various data types and Boolean types
Data type
The value converted to true
Value converted to False
Boolean
True
False
String
Any non-empty string
"" (empty string)
Number
Any non-0 numeric value (including infinity)
0
are objects, the second object is returned.
Returns null if one of the operands is null.
If an operand is Nan, a nan is returned.
If an operand is undefined, an error occurs.
12 . The logical AND operator is represented by the double ampersand (). 13. The logical OR operator is represented by a double vertical bar (| | Said14, multiplication also has some special behavior:
If the result is too large or too small, the resulting result is
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
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
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.