0 python-5.4 Precision and complex number of basic science

Source: Internet
Author: User

1. Integer precision

Here we compare the integer precision of python2.7 and python3.4


python3.4 supports an infinite number of integers (depending on your memory), and in version 2.7 he supports a finite integer length, and for very long integers, he appends the numbers with L representing the long intege type

Although infinite integers are supported, his operations are slower than normal integers, so if precision is required, only a little performance can be sacrificed.


2. plural

The complex number is represented as two floating-point numbers (both real and imaginary), and Python uses J to denote imaginary parts.

The plural is the expansion of the number, when the negative opening of the square root can not be calculated, so the introduction of the plural concept, as for the use you will understand later, mainly for some scientific calculations, the main application or in the mathematical theory

Here are some complex operations




Right here, thank you.

------------------------------------------------------------------

Click to jump 0 basic python-Catalogue


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

0 python-5.4 Precision and complex number of basic science

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.