Skip to content

Commit a9b400c

Browse files
committed
Adjusted readme
1 parent 3322f53 commit a9b400c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22

33
Mathematica package to convert [MATHEMATICA](https://www.wolfram.com/mathematica/) expressions to Python [Numpy](http://www.numpy.org/)
44

5+
## Quick usage
6+
7+
The quickest way to use the package is to directly load it from the master branch of this
8+
repository by running the following code in a Mathematica notebook:
9+
10+
```Mathematica
11+
Import["https://raw.githubusercontent.com/zwicker-group/MathematicaToPython/master/ToPython.wl"]
12+
```
13+
514
## Installation
615

7-
To install the package
16+
To install the package permanently, do the following
817

9-
1. Download it
18+
1. Download it from this repository
1019
2. Click on `Mathematica`' `File menu-> Install->From file...`
1120
3. Select the file on your disk
1221

@@ -28,7 +37,7 @@ Beside the actual expression the `ToPython` function also supports two options:
2837
* `Copy`, which when enabled copies the formatted expression to the clipboard
2938

3039
Taken together, a simple example call is
31-
```
40+
```Mathematica
3241
ToPython[Sin[x], NumpyPrefix->"numpy", Copy->True]
3342
```
3443
which should copy `numpy.sin(x)` to your clipboard.

ToPython.wl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ PythonForm[E] = np<>"e";
120120
(* Greek characters *)
121121
greekrule={
122122
"\[Alpha]"->"alpha","\[Beta]"->"beta","\[Gamma]"->"gamma","\[Delta]"->"delta",
123-
"\[CurlyEpsilon]"->"curlyepsilon","\[Zeta]"->"zeta","\[Eta]"->"eta",
123+
"\[Epsilon]"->"epsilon", "\[CurlyEpsilon]"->"curlyepsilon","\[Zeta]"->"zeta","\[Eta]"->"eta",
124124
"\[Theta]"->"theta","\[Iota]"->"iota","\[Kappa]"->"kappa","\[Lambda]"->"lambda",
125125
"\[Mu]"->"mu","\[Nu]"->"nu","\[Xi]"->"xi","\[Omicron]"->"omicron","\[Pi]"->"pi",
126126
"\[Rho]"->"rho","\[FinalSigma]"->"finalsigma","\[Sigma]"->"sigma","\[Tau]"->"tau",

0 commit comments

Comments
 (0)