Search
Simple Computations
Simple_Computation (the Wolfram Language for Students - Personal Use Only : www.wolfram.com)

Simple arithmetic

The usual operations work:

Simple_Computation_1.png

Simple_Computation_2.png

Note: division of integers gives rational numbers not floating point:

Simple_Computation_3.png

Simple_Computation_4.png

Numbers with decimal points are interpreted as inexact (i.e. double precision floating point)

Simple_Computation_5.png

Simple_Computation_6.png

Group expressions using parentheses. Multiplication can be perform by adding a space (a gray x will appear):

Simple_Computation_7.png

Simple_Computation_8.png

Simple_Computation_9.png

Simple_Computation_10.png

More computations

There are a huge number of mathematical functions built in:

Simple_Computation_11.png

Simple_Computation_12.png

Sin, Cos, Log, Exp, Gamma, Erf

Note:

All built-ins in Mathematica begin with a capital letter

Even constants, e.g. Pi, E, and I

This leaves all lowercase-beginning identifiers for user code

Function call syntax

Unlike in Julia, functions are called with square brackets

Examples:

Simple_Computation_13.png

Simple_Computation_14.png

Simple_Computation_15.png

Simple_Computation_16.png

Simple_Computation_17.png

Simple_Computation_18.png

As in Julia, arguments are separated by commas:

Simple_Computation_19.png

Simple_Computation_20.png