Skip to content

Emi-A-V/lambda-calc-gui

Repository files navigation


λ-Loom
(A lambda-calc GUI)

The lambda-calc-GUI is based on the lambda-calc engine and builds a user-friendly GUI on top of it. The app is made with wails library.

Features

The GUI makes it easy to interact with the lambda-calc engine. The interface shows the history of the last calculations as well as all defined functions and variables.


Usage

For learning how to use lambda-calc please refer to the CLI implementation of this project.

Config-File

The config file can be found under config/config.toml. The config file defines the behavior of the math engine.

Options

Currently options are only there to debug the program and trace back at what point an error occured.

[options]
show_debug_process = false
Option - bool Effect
show_debug_process Prints out message about the state of the program during calculation.

Symbols

All symbols used when entering an equation can be configured:

[symbols]
decimal_split = '.'

plus = '+'
minus = '-'
multiply = '*'
divide = '/'

sqrt = 'sqrt'
power = '^'

Currently sqrt is the only multi-character symbol.

Constants

Constants can also be defined in the config file. All constants are declared under the constant struct, with the key being the name of the variable and the value the value of the variable. The value is in a Float64 format. By default these constants are included:

[constants]
pi = 3.14159265
phi = 1.618033988
e = 2.71828182