Wolfram Language (Mathematica) Tutorial for Programers
This is a Wolfram Language tutorial for programers. This tutorial is designed especially if you are already familiar with a programing language, such as Python, JavaScript, Lisp .
This tutorial focus on showing you how WolframLang works. You'll be able to code WolframLang in a hour, but most importantly, it make you understand the principle of WolframLang and its symbolic pattern matching that's the heart of WolframLang.
Print Version Number
Print[ $Version ] (* "12.2.0 for Microsoft Windows (64-bit) (December 12, 2020)" *) Print[ $VersionNumber ] (* 12.2 *)
Comment
(* this is comment. can be multiple lines. (* can be nested *) *)
Print
- print a expression.
Return
Null
.- In Wolfram Notebook, every expression is auto printed after evaluation, unless it ends in Semicolon.
- In WolframScript, either use
Print
explicitly, or use command line option-print
or-print all
.
Print[ "something" ]
Print[ x^2 ]
I recommend you read the following in order.