Rulealize.RuleSet.Calculator 1.0.0

dotnet add package Rulealize.RuleSet.Calculator --version 1.0.0
                    
NuGet\Install-Package Rulealize.RuleSet.Calculator -Version 1.0.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="Rulealize.RuleSet.Calculator" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rulealize.RuleSet.Calculator" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Rulealize.RuleSet.Calculator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rulealize.RuleSet.Calculator --version 1.0.0
                    
#r "nuget: Rulealize.RuleSet.Calculator, 1.0.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.
#:package Rulealize.RuleSet.Calculator@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rulealize.RuleSet.Calculator&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Rulealize.RuleSet.Calculator&version=1.0.0
                    
Install as a Cake Tool

Rulealize.RuleSet.Calculator

A scientific calculator: brackets, powers, sin, cos and tan in degrees or radians, logarithms, and the keys laid out as one. A Rulealize rule set.

Rule set id Rulealize.RuleSet.Calculator
Package Rulealize.RuleSet.Calculator
Inputs press
Holds nothing
Draws on TypeSchema, State, Grid, Sequence, Record, Comparison, Logic, Arithmetic, Branch, Binding, Definition

The keys are a board of their own, five across and eight down, and press takes the square of the one pressed, so a screen that draws the board has the calculator's face:

DEG  sin  cos  tan  π
ln   log  eˣ   10ˣ  e
x²   √    xʸ   1/x  n!
(    )    ±    %    |x|
7    8    9    ⌫    C
4    5    6    ×    ÷
1    2    3    +    −
0    .    EXP  Ans  =

Multiplication and division come before addition and subtraction, powers before both, and brackets before all: 2 + 3 × 4 = is 14, and 2 xʸ 3 xʸ 2 = is 512. Brackets nest five deep, and = closes any left open. A function key works on the number shown, as on a calculator without a formula display: 9 √ is 3. EXP is times ten to the power of the next number, Ans the last answer, and DEG switches sin, cos and tan between degrees and radians, the key showing which is in use.

Ten digits are typed at most, and a result keeps ten significant digits. One of more than twelve digits before the point, a division by zero, or a function with no value there — √ of a negative number, log of zero, tan of 90 degrees — is an error, and only C clears it. A key that would do nothing is not offered: ) with no bracket open, ⌫ on a result.

sin, cos, tan and the logarithms are worked out from their series in decimal, so they give the same digits everywhere. eˣ, √ and a power with a fractional exponent go through math.pow, whose last digits may differ between machines; ten significant digits do not reach them.

Projection Holds
display The number shown, or "error"
pending The sum so far, as the calculator shows it over the number being typed: [2, "×", "(", 3, "+"]

Opening it

Rulpane opens it from the Rulealize Registry by its identifier and version: #r=Rulealize.RuleSet.Calculator@1.0.0.

License

Apache-2.0.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.0.0 77 10/31/2026