Quick start

The following page is a short instruction for getting started with AngouriMath. You may also need to address the following resources:

GitHub Repository · Wiki guide · Discord chat

Install for C# and F#

How to install from NuGet? Here are a few instructions how to use NuGet:

Packages you may want to install: AngouriMath targets netstandard2.0, which implies that it will work for almost any target.

It is recommended to include prereleases to install the last version, even if it is a pre-release one.

If you want to use the last version, pushed to master, you will need to add MyGet as a nuget package source:
Here is what you can add to your nuget.config file:
<add key="myget" value="" />
Now, all latest versions are under 0.0.0-* pattern.

Install for Jupyter

First, make sure to have installed Interactive for .NET: follow the instructions from the official repository.

The package to install is here:

To install it, we recommend .NET Interactive's syntax, as follows:
#r "nuget:AngouriMath.Interactive, *-*"
If you want to install the last vesion, pushed to master, you can install it in the following way:
#i ""
#r "nuget:AngouriMath.Interactive, 0.0.0-*"

Install for C++ (experimental)

Consuming from C++ is available for CMake.

1. Here you need to add a language requirement:

2. Add this fetcher before you add an executable:
    GIT_TAG        origin/cpp-release
3. Add this function (which copies the lib to the executable) after you add an executable:
See the example.

Hello, world!

To verify you have everything installed correctly, let us write a simple program, computing a derivative:

C# code:
using AngouriMath;
using System;
Entity expr = "x + sin(y x)";
F# code:
open Core
open Functions
let expr = parse "x + sin(y x)"
printf "%O" expr
printf "\n"
printf "%O" (differentiate "x" expr)
#r "nuget:AngouriMath.Interactive, *-*"
open Core
open Functions
let expr = parse "x + sin(y x)"
differentiate "x" expr
C++ code:
#include <AngouriMath.h>;
AngouriMath::Entity expr = "x + sin(y x)";
std::cout << expr.Differentiate("x");

What's next?

You can check examples and wiki. We also recommend joining our Discord chat, so that we could help and you can give a feedback. The full documentation is in the almanac. The repository (with the source code) is on GitHub.

2019-2021 Angouri · Project's repo · Site's repo · Octicons