In [1]:
a = 5
b = 2a ^2 + 30a + 9


Out[1]:
209

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]:
PyObject <matplotlib.text.Text object at 0x101c83690>

In [6]:
x = 1
y = 2
z = x + y


Out[6]:
3

In [7]:
code_llvm(f, (Int64,))


f not defined
while loading In[7], in expression starting on line 1

In [8]:
typeof(3.14)


Out[8]:
Float64

In [9]:
typeof("x")


Out[9]:
ASCIIString (constructor with 2 methods)

In [10]:
x = "this is a test"
typeof(x)


Out[10]:
ASCIIString (constructor with 2 methods)

In [11]:
y = 7
x + y


`+` has no method matching +(::ASCIIString, ::Int64)
while loading In[11], in expression starting on line 2

In [12]:
x = 3.5
x + y


Out[12]:
10.5

In [13]:
print_with_color(:red, "This is printed in red")


This is printed in red

In [14]:
print_with_colour(:green, "This is green")


print_with_colour not defined
while loading In[14], in expression starting on line 1

In [15]:
print_with_color(:green, "This is green")


This is green

In [ ]: