CoreWolf 1.1.0
See the version list below for details.
dotnet add package CoreWolf --version 1.1.0
NuGet\Install-Package CoreWolf -Version 1.1.0
<PackageReference Include="CoreWolf" Version="1.1.0" />
paket add CoreWolf --version 1.1.0
#r "nuget: CoreWolf, 1.1.0"
// Install CoreWolf as a Cake Addin #addin nuget:?package=CoreWolf&version=1.1.0 // Install CoreWolf as a Cake Tool #tool nuget:?package=CoreWolf&version=1.1.0
CoreWolf
What is CoreWolf?
- Do you use Mathematica extensively or wolfram engine/script/kernel/one/alpha?
- Are you looking for an easy and cross-platform library to integrate wolfram into your software?
- Don't you want to remember the syntax of the commands and the lexicon created for the wolfram language (WL)?
CoreWolf is exactly what you need and didn't know you needed.
CoreWolf is an open source c# library that allows you to fully interact with wolfram language by integrating all more than 6500 buildin symbols of engine. Unlike the c# library NETLink developed by Wolfram but usable only on Windows platform, CoreWolf is developed in .NET Core and therefore usable on Windows, Linux, MacOS and all OS supported by .NET Core.
How to use CoreWolf?
The code can be compiled by running the command
dotnet build
and the CoreWolf.dll library will be produced. The library can be imported into your project and used. Here are some examples:
Perform a simple operation (sum)
using CoreWolf; //import the library
Link link = new Link(); //class link
Engine en = link.Engine; //get the engine
en.Execute("17+5"); //use the engine to Execute a command
At the end, the value of property Text of en (en.Text) will be 22.
Perform more complex operations
- Reduction of an expression $\sin\left(x\right)^2+\cos\left(x\right)^2$
en.Execute("Sin[x]^2+Cos[x]^2==1).Reduce();
The value of en.Text is the boolen string 'True'.
- Exact integration $\int_{2}^3 x^2 dx$
en.Integrate("x^2", "{x, 2, 3}");
- Numerical integration $\int_{2}^3 x^e dx$
en.NIntegrate("x^E", "{x, 2, 3}")
- Exact integration and than its numerical evaluation $\int_{2}^3 x^2 dx$
en.Integrate("x^2", "{x, 2, 3}")
en.N();
//is the same as en.Integrate("x^2", "{x, 2, 3}").N();
Draw and export a plot
en.Plot("Sqrt[Log[1+x^2]]", "{x, Sin[3], 90}"); //create a plot
en.Export("plot.jpg"); //export a plot
Build a new library
cd Scraper
dotnet run Scraper
cd ../CoreWolf
rm -rf bin obj
cp ../README.md .
dotnet pack -c Release
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.