Julia Vs Python Tutorials - Variables and Numbers

preview_player
Показать описание
Julia Vs Python Programming Tutorials

We will be learning two languages together and be checking the differences,similarities and merits.
In this tutorials we will be checking variables,numbers and print
converting strings to numbers,etc

=======================JULIA======================================
Julia is a high-level dynamic programming language designed to address the needs of high-performance numerical analysis and computational science while also being effective for general-purpose programming, web use or as a specification language

=======================PYTHON=====================================
Python is a widely used high-level, general-purpose, interpreted, dynamic programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than possible in languages such as C++ or Java

By J-secur1ty of JcharisTech
Рекомендации по теме
Комментарии
Автор

Julia uses either Int64 or Int32 depending on ur computer wordsize. And the reason you are not getting the correct result (100 ^ 40) is because Int32/64 can't store that much value. For something like that, you will need the BigInt class, which is what Python uses as its default numeric type. If you did `BigInt(100)^BigInt(40)` you should get ur correct result. BTW, arbitrary precision types (such as BigInt or BigFloat) are quite slow for anything that doesn't cross the max of Int32/64. Julia went with performance over quality here given its goals.

StevenAkinyemi