I am not too experienced with Mathematica at the moment. This document will go over my knowledge of the Mathematica language so far.
This document used various version 8.0.4 of the Wolfram Mathematica programming language.
Comments in Mathematica are unique, but still easy to do.
(* This is a single line comment *)
(* The syntax for a multi-line
comment uses the same syntax
as a single line comment *)
This example works with every version of Mathematica.
Mathematica does NOT support the break
keyword.
To this day, I am still not entirely sure what the break
keyword does, but most languages support it.
/!\ This example has not been tested yet, and may not work
A hello world program in Mathematica is a bit more complicated than a Python or Perl Hello World program, but it isn't very difficult either. It is not similar to any language I am currently familiar with.
Print[ OutputForm["Hello World"] ];
(* Output:*)
(* Hello World *)
This example works with every version of Mathematica (as far as I know)
/!\ This example has not been tested yet, and may not work
I think this is how you implement integers in Mathematica
int x -> 2;
int y -> 32;
Print[ OutputForm[2^32] ];
This example works with every version of Mathematica (as far as I know)
/!\ This example has not been tested yet, and may not work
Booleans are defined like so in Mathematica:
int x -> 4;
bool isEven -> True
bool isOdd -> False
Print[ OutputForm[x] ];
This example works with every version of Mathematica (as far as I know)
/!\ This example has not been tested yet, and may not work
Here is a Mathematica package I commonly use as an example. I don't entirely know what it does at the moment, but I use it in my Mathematica programs.
Paclet[
Name -> "WolframLanguageForJupyter",
Version -> "0.9.2",
MathematicaVersion -> "11.2+",
Extensions -> {
{"Kernel", Context -> {"WolframLanguageForJupyter`"}},
{"Documentation", Language -> "English"}
}
]
/!\ This example has not been tested yet, and may not work
The majority of my Mathematica knowledge comes from self-experimentation, and Wikipedia.
-
Mathematica is a curly bracket language, and it does use semicolons at the end of each line.;
-
Mathematica uses the
*.m
file extension for normal use. -
Mathematica uses the
*.nb
file extension for notebook programming -
Mathematica is a language recognized by GitHub
-
Mathematica is not an open source programming language (it is proprietary) but it comes pre-installed on some Linux devices, such as the Raspberry Pi.
-
Mathematica was created by WolfRam
-
Mathematica is also known as WolfRam Mathematica
-
No other knowledge of Mathematica at the moment.
File version: 1 (2022, Monday, April 18th at 5:00 pm PST)