Mathematica keyboard shortcuts

https://reference.wolfram.com/language/tutorial/KeyboardShortcutListing.html

shell commands

mmadoc

Getting documentation with Mathematica code

1
2
?Integrate
?WolframAlpha
1
2
3
4
5
6
#!/bin/bash
export TTY

funcname="$1"

mma "?$funcname"

mma

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/bash
export TTY

# Mathematica

tf_script="$(ux tf script wls || echo /dev/null)"
trap "rm \"$tf_script\" 2>/dev/null" 0

cat > "$tf_script" <<HEREDOC
Print[$@]
HEREDOC

wolframscript -file "$tf_script" "$@"

Example

1
2
3
4
5
6
mmadoc Integrate
mmadoc WolframAlpha
mma "WolframAlpha[\"size of the moon\"]"
WolframAlpha["size of the moon"]
wa size of the moon
mma "Integrate[5x,x]"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Integrate[f, x] gives the indefinite integral ∫ f dx.
                                                             x
                                                              max
Integrate[f, {x, x   , x   }] gives the definite integral ∫     f dx.
                  min   max                                  x
                                                              min
Integrate[f, {x, x   , x   }, {y, y   , y   }, …]
                  min   max        min   max
                                   x          y
                                    max        max
    gives the multiple integral ∫     dx ∫     dy … f.
                                   x          y
                                    min        min
Integrate[f, {x, y, …} ∈ reg] integrates over the geometric region reg.
Null
WolframAlpha["query"] sends query to Wolfram|Alpha and imports the output.
WolframAlpha["query", format] imports the output according to the specified
    format.
Null
{{{Input, 1}, Plaintext} -> Moon | average radius, {{Result, 1}, Plaintext} -> 1737.4 km (kilometers), {{UnitConversion, 1}, Plaintext} -> 1079.6 miles, {{UnitConversion, 2}, Plaintext} -> 1.7374×10^6 meters, {{UnitConversion, 3}, Plaintext} -> 938.12 nmi (nautical miles), {{ComparisonAsRadius, 1}, Plaintext} ->  ≈ 0.27 × Earth mean radius ( 6.371×10^6 m ), {{ComparisonAsRadius, 2}, Plaintext} ->  ≈ 0.71 × Mercury equatorial radius ( 2.4397×10^6 m ), {{ComparisonAsRadius, 3}, Plaintext} ->  ≈ 1.5 × Pluto equatorial radius ( 1.185×10^6 m ), {{Sizes:PlanetaryMoonData, 1}, Plaintext} -> average radius | 1737.4 km (kilometers)
equatorial radius | 1738.1 km (kilometers)
polar radius | 1736 km (kilometers)
average diameter | 3474.8 km (kilometers)
equatorial diameter | 3476.2 km (kilometers)
polar diameter | 3472 km (kilometers)
equatorial circumference | 10921 km (kilometers)
angular diameter | 32.829' (arc minutes), {{Input, 1}, Input} -> HoldComplete[Entity[PlanetaryMoon, Moon][EntityProperty[PlanetaryMoon, Radius]]], {{Sizes:PlanetaryMoonData, 1}, Input} -> HoldComplete[Dataset[EntityValue[Entity[PlanetaryMoon, Moon], {EntityProperty[PlanetaryMoon, Radius], EntityProperty[PlanetaryMoon, EquatorialRadius], EntityProperty[PlanetaryMoon, PolarRadius], EntityProperty[PlanetaryMoon, Diameter], EntityProperty[PlanetaryMoon, EquatorialDiameter], EntityProperty[PlanetaryMoon, PolarDiameter], EntityProperty[PlanetaryMoon, EquatorialCircumference], EntityProperty[PlanetaryMoon, AngularDiameterFromEarth]}, PropertyAssociation]]]}
1737.4 kilometers
(5*x^2)/2

Examples

1
2
wa the richest person in the world
wa scientific name for pineapple
1
2
The world's wealthiest man is Jeff Bezos at an estimated value of 155 billion US dollars
Ananas