Mathematica notes

Home

mathematica-logo.png

Table of Contents

Help! What is Wolfram Language?

How do I get help?

?Plot

How do I use Wolfram Alpha?

Start a cell with the equals sign, =, and type your query.

How do I type Greek letters?

Esc followed by the name of the letter.

How do I define a function?

📌 Remember to use the underscore for the arguments when defining a function.

f[x_] := x^2

How do I write an anonymous function?

The function \(x \mapsto x^2\) can be written as:

(#^2 &)

How do I pipe the output of one function into another?

2 // Sqrt

Examples

How do I compute a derivative?

D[x^2, x]

How do I solve an initial value problem?

DSolve[{y''[x] - y[x] == 0, y[0] == 1, y'[0] == 0}, y[x], x]

How do I solve a pair of algebraic equations?

Solve[{x^2 + y^2 == 1, x + y == 1}, {x, y}]

How do I plot an expression?

Plot[Sin[x], {x, 0, 2*Pi}]

Author: Alexander E. Zarebski

Created: 2024-08-09 Fri 12:58

Validate