06.09.2021 Views

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 1. INTRODUCTION 14<br />

Press ] to switch to the package mode, and then type and enter "add PyPlot". Your<br />

term<strong>in</strong>al will look like this:<br />

When the package is loaded, you can go back to the Jupyter notebook, and type<br />

us<strong>in</strong>g PyPlot to start the package.<br />

In [18]: us<strong>in</strong>g PyPlot<br />

In [19]: x = range(0,stop=2*pi,length=1000)<br />

y = s<strong>in</strong>.(3x);<br />

plot(x, y, color="red", l<strong>in</strong>ewidth=2.0, l<strong>in</strong>estyle="--")<br />

title("The s<strong>in</strong>e function");

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!