You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-27Lines changed: 31 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,33 +6,12 @@ This package provides access to Mathematica/Wolfram Engine via the MathLink libr
6
6
7
7
## Installation
8
8
9
-
The package requires an installation of either [Mathematica](http://www.wolfram.com/mathematica/) or the free [Wolfram Engine](https://www.wolfram.com/engine/). It will attempt to find the installation at build time; if this fails, you will need to set the following environment variables:
10
-
-`JULIA_MATHKERNEL`: the path of the MathKernel executable
11
-
-`JULIA_MATHLINK`: the path of the MathLink dynamic library named
12
-
-`libML64i4.so`/ `libML32i4.so` on Linux
13
-
-`ml64i4.dll`/`ml32i4.dll`/`libML64.dll`/ `libML32.dll` on Windows
14
-
15
-
After setting you may need to manually build the package
16
-
```julia
17
-
(@v1.X) pkg> build MathLink
18
-
```
19
-
20
-
A separate workaround is to directly edit the deps/deps.jl file, which should be located (on Linux) at `~/.julia/packages/MathLink/<version dependent>/deps/deps.jl`
After createing the file `deps.jl` try loading MathLink the usual way
28
-
```julia
29
-
(@v1.X) pkg>using MathLink
30
-
```
9
+
The package requires an installation of either [Mathematica](http://www.wolfram.com/mathematica/) or the free [Wolfram Engine](https://www.wolfram.com/engine/). It will attempt to find the installation at build time; if this fails, please see the [installation troublesshoot](#installation-troubleshoot) below.
31
10
32
11
33
12
## Usage
34
13
35
-
The main interface consists of the `W""` string macro for specifying symbols. These are call-overloaded for building more complicated expressions
14
+
The main interface consists of the `W""` string macro for specifying symbols. These are call-overloaded for building more complicated expressions.
36
15
37
16
```julia
38
17
julia>using MathLink
@@ -73,7 +52,7 @@ julia> weval(sinx; x=2.0)
73
52
74
53
## The algebraic operators
75
54
76
-
MathLink also overloads the `+`, `-`, `*`, `/` operations
55
+
MathLink also overloads the `+`, `-`, `*`, `/` operations.
77
56
78
57
```julia
79
58
julia>using MathLink
@@ -105,7 +84,7 @@ julia> W"a"-W"a"
105
84
106
85
## Fractions and Complex numbers
107
86
108
-
The package also contains extentions to handle fractions
87
+
The package also contains extensions to handle fractions.
109
88
110
89
```julia
111
90
julia>weval(1//2)
@@ -130,7 +109,7 @@ W"Times"(-1, W"c")
130
109
131
110
132
111
## Matrix Multiplication
133
-
Since the arithematic operators are overloaded, operations such as matrix multiplication are also possible by default
112
+
Since the arithmetic operators are overloaded, operations such as matrix multiplication are also possible by default.
Printing in Juypter notebooks is by defaults done in latex.
165
+
Printing in Juypter notebooks is, by default, done in latex.
187
166
This can be turned off with the command `MathLink.set_texOutput(false)`
188
167
168
+
## Installation Troubleshoot
169
+
The package requires an installation of either [Mathematica](http://www.wolfram.com/mathematica/) or the free [Wolfram Engine](https://www.wolfram.com/engine/). It will attempt to find the installation at build time; if this fails, you will need to set the following environment variables:
170
+
-`JULIA_MATHKERNEL`: the path of the MathKernel executable
171
+
-`JULIA_MATHLINK`: the path of the MathLink dynamic library named
172
+
-`libML64i4.so`/ `libML32i4.so` on Linux
173
+
-`ml64i4.dll`/`ml32i4.dll`/`libML64.dll`/ `libML32.dll` on Windows
174
+
175
+
After setting, you may need to manually build the package
176
+
```julia
177
+
(@v1.X) pkg> build MathLink
178
+
```
179
+
180
+
A separate workaround is to directly edit the deps/deps.jl file, which should be located (on Linux) at `~/.julia/packages/MathLink/<version dependent>/deps/deps.jl`
181
+
182
+
The contents of `deps.jl` could for instance, read
0 commit comments