CoreWolf 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CoreWolf --version 1.1.0                
NuGet\Install-Package CoreWolf -Version 1.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CoreWolf" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CoreWolf --version 1.1.0                
#r "nuget: CoreWolf, 1.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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?

  1. Do you use Mathematica extensively or wolfram engine/script/kernel/one/alpha?
  2. Are you looking for an easy and cross-platform library to integrate wolfram into your software?
  3. 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

  1. 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'.

  1. Exact integration $\int_{2}^3 x^2 dx$
en.Integrate("x^2", "{x, 2, 3}");
  1. Numerical integration $\int_{2}^3 x^e dx$
en.NIntegrate("x^E", "{x, 2, 3}")
  1. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
1.3.4 126 7/16/2024
1.3.3 117 7/3/2024 1.3.3 is deprecated because it has critical bugs.
1.3.2 117 7/3/2024 1.3.2 is deprecated because it has critical bugs.
1.3.1 121 6/27/2024
1.3.0 120 5/28/2024
1.1.0 165 1/16/2024
1.0.0 113 1/16/2024