Computational Physics Summer School


Frequently Asked Questions

Questions, answers and suggestions concering the laboratories will be regularly posted here, throughout the Summer School.

Mathematica - Fibonacci

>I am just doing your programming notebook at the Summer
>School.Excuse my ignorance but what are Fibonacci numbers and how
>are they calculated?

        Fibonacci[0] = 1

        Fibonacci[1] = 1

        Fibonacci[n_] := Fibonacci[n-1] + Fibonacci[n-2]

The first few are: 1,1,2,3,5,8,13,...

Mathematica - UNIX

>I have a query about Mathematica. I tried to copy Abbott's Notebooks onto
>the UNIX machine I have an account for. The files were copied as plain text
>(eg Physics.ma, Program.ma, Shuttle.ma) with Fetch; I then tried to read them
>from within Mathematica in my UNIX machine. The problem is UNIX does not
>support notebooks, only a text-based interface;

Actually Unix does support Notebooks under X Windows.  Instead of typing

        % math

try

        % mathematica

if you are on an X term.

>nonetheless, the manual says:
>   using "filename" Mathematica will ignore all the material in the notebook
>   except those pieces which are in initialization cells.

The problem here is that when I created the Notebooks I did not save the
input cells as initialisation cells.  If you really don't have access to
Notebooks under Unix (which I STRONGLY recommend) then I can save these
Notebooks with all input cells as initialisation cells.

Labs


[Home]
[ Summer School home page ] [ Lecture timetable ] [ School Map ]
[ HELP ] [ FAQ ] [ Email the organisers ] [ MATLAB homepage ]

Last Update 12 January 1996