Meeting times: Wednesday 12:20 - 2:15, 1S-103. We will meet Tuesday April 7th instead of April 8th.
Test 1 is scheduled for March 11; Test 2 for April 22; the final will likely be May 20.
Using Julia in 1S-103:
Unfortunately Julia is not installed on the image in 1S-103. Consequently, we will utilize one of several workarounds (more may be added):
is an option. Click the button, and somewhere on the internet your own version of Julia will start up. This can take a minute, so read the static project while you wait. Once loaded, you will have an interactive Julia session.
This link will load faster, but seemed flaky.
juliabox.com This site hosts Julia for a fee. Currently the first month is free, and thereafter it is 7 dollars a month for academic use. To use juliabox
you will need to install some software (below).
cocalc.com This site is free for simple use, but for this class, a paid account is necessary. The rate is 14 dollars per semester. You must email me at verzani@math.csi.cuny.edu
and I can add you as a student. This makes it easy to access the projects. You will still need to install some software (below).
Install julia on a laptop. Julia is free software and can be downloaded from julialang.org. Once downloaded, you would need to configure your installation.
Configuring your system.
IJulia
Binder, juliabox, and cocalc all provide a notebook interface. However, if installing julia
on a laptop, you will want to install IJulia
so that you can interact with julia
using a notebook interface, instead of the command line interface. To do so, you must install the IJulia
package. Open julia
and a "terminal" will present itself. At the terminal type in:
] add IJulia
then press enter
. This will install IJulia
. You do this once. After it is installed each time you wish to use julia
you open the terminal and type these two commands:
using IJulia
notebook()
This opens a directory that allows you to open a notebook. At first, you should open a new notebok using the "New" button on the right side.
This class uses a package to provide various conveniences. Packages are how julia
can be enhanced. Like IJulia
, you install a package once, but have to load it each time you start a session. The MTH229
package can be installed with these commands (watch the capitalization):
using Pkg
Pkg.add(PackageSpec(url="https://github.com/mth229/MTH229.jl.git"))
To use this package, you simply issue the command
using MTH229
Copy these commands into an IJulia
cell and execute
using Pkg
Pkg.add("ZipFile")
using ZipFile
r = ZipFile.Reader(download("https://github.com/mth229/229-projects/archive/master.zip"));
for f in r.files
basename(f.name) == "" && continue
io = open(basename(f.name), "w")
write(io, read(f, String));
end
This will download the files into your current directory. They should now be viewable from the IJulia
directory listing, though you may need to refresh that page.