VibeMaths 1.0.0
dotnet add package VibeMaths --version 1.0.0
NuGet\Install-Package VibeMaths -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="VibeMaths" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VibeMaths" Version="1.0.0" />
<PackageReference Include="VibeMaths" />
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 VibeMaths --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VibeMaths, 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 VibeMaths@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=VibeMaths&version=1.0.0
#tool nuget:?package=VibeMaths&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VibeMaths
A C# math library powered entirely by vibes.
Why ask your CPU when you could ask an LLM?
What is VibeMaths?
VibeMaths is a small C# library that let's you delegate all of your mathematical operations to an AI.
Instead of letting the CPU compute numbers the boring way, VibeMaths asks an LLM:
"Hey, what’s 2 + 2?"*
*VibeMaths does not actually phrase questions like that.
Perfect for:
- Replacing deterministic computing with probabilistic vibes.
- etc.
Usage Examples
Basic features
using VibeMaths;
class Program
{
static void Main()
{
var vm = new VibeMathematician("your-openai-api-key");
// Basic arithmetic
var sum = vm.Add(2, 2); // Might be 4
// Comparisons
bool greater = vm.GreaterThan(10, 3); // True (unless vibes disagree)
// Trigonometry
var sine = vm.Sin(Math.PI / 2); // Ideally 1
Console.WriteLine($"2 + 2 = {sum}, 10 > 3? {greater}, sin(π/2) = {sine}");
}
}
For loops
using VibeMaths;
class Program
{
static void Main()
{
var vm = new VibeMathematician("your-openai-api-key");
for (int i = 0; vm.LessThan(i, 10); i = vm.Add(i, 1)) // Way faster to type than a normal for loop
{
Console.WriteLine(vm.Add(i, 1)); // Counts from 1 to 10, probably
}
}
}
Finding prime numbers
using VibeMaths;
class Program
{
static void Main()
{
var vm = new VibeMathematician("your-openai-api-key");
List<int> primes = [2];
int current = 3;
Console.WriteLine("2"); // Write out the first prime number
while (vm.Equal(0, 0)) // The proper way to write while (true).
{
for (int i = 0; vm.LessThan(i, primes.Count); i = vm.Add(i, 1))
{
// Check if current is divisible by any of the primes found so far
if (vm.Equal(vm.Modulo(current, primes[i]), 0))
{
break;
}
// If there are no factors after reaching the end, it is a prime number
if (vm.Equal(i, vm.Subtract(primes.Count, 1)))
{
primes.Add(current);
Console.WriteLine(current);
}
}
current = vm.Add(current, 2); // Increment by 2 to check only odd numbers
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
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 | 56 | 8/22/2025 |