Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Tutorials
Elementary operations
We will frequently be computing with arrays of numbers, so let's see how various elementary computations are defined
Exercise
Try various elementary operations (+
,-
,*
,/
). What do the operations x**2
and x**y
produce? And how about x^2
?
Univariate functions
To plot a function we first need to evaluate it at a number of points and subsequently produce a plot.
We can add labels, a legend and change the linestyle of the plots:
Defining your own functions
We can define our own functions as follows
Exercise
Define the function ParseError: KaTeX parse error: Unknown column alignment: - at position 29: …{\begin{array} -̲-x & x < -1 \\ …
and plot it.
Multivariate functions
When plotting a function of two variables, we need to define a grid first: