In [1]:
a = 5
b = 2a ^2 + 30a + 9
Out[1]:
In [5]:
using PyPlot
x = linspace(0,5)
y = cos(2x + 5)
plot(x,y, linewidth=2, linestyle = "--")
title("a nice cosinus")
xlabel("x axis")
ylabel("y axis")
Out[5]:
In [6]:
x = 1
y = 2
z = x + y
Out[6]:
In [7]:
code_llvm(f, (Int64,))
In [8]:
typeof(3.14)
Out[8]:
In [9]:
typeof("x")
Out[9]:
In [10]:
x = "this is a test"
typeof(x)
Out[10]:
In [11]:
y = 7
x + y
In [12]:
x = 3.5
x + y
Out[12]:
In [13]:
print_with_color(:red, "This is printed in red")
In [14]:
print_with_colour(:green, "This is green")
In [15]:
print_with_color(:green, "This is green")
In [ ]: