Optionally a session may check for any updates for installed packages:
In [1]:
Pkg.update()
A few very simple interactive REPL input lines:
In [2]:
1+1
Out[2]:
In [3]:
2^4
Out[3]:
In [4]:
x=5
Out[4]:
In [5]:
x^2
Out[5]:
In [6]:
y=x+6
Out[6]:
In [7]:
x=4
Out[7]:
In [8]:
y
Out[8]:
In [9]:
1
Out[9]:
In [10]:
bits(1)
Out[10]:
In [11]:
bits(5)
Out[11]:
In [12]:
length(bits(3))
Out[12]:
In [13]:
length(bits(5))/8
Out[13]:
Thus 64/8 returns a floating point value. Use the div() function or operator (enter by typing '\div' -no quotes- and press tab):
In [14]:
length(bits(5))÷8
Out[14]:
In [15]:
bits(-1)
Out[15]:
There are many other completions as used above, e.g. \alpha and tab. Or to see possible completions, enter 'type' followed by tab. Select typemax.
In [16]:
typemax(Int64)
Out[16]:
In [17]:
largest_integer = ans
Out[17]:
In [18]:
bits(largest_integer)
Out[18]:
In [19]:
bits(largest_integer+1)
Out[19]:
In [20]:
largest_integer+1
Out[20]:
In [21]:
#This is a comment, not evaluated
In [22]:
# largest_integer+1 is the smallest_integer
In [23]:
typemin(Int64)
Out[23]:
In [24]:
UInt64(1)
Out[24]:
In [25]:
2^63
Out[25]:
In [26]:
bits(2^63)
Out[26]:
In [27]:
bits(2^63+1)
Out[27]:
In [ ]: