UniverseSharp 1.0.0

Library to facilitate physical calculations e.g. calculating cosmic velocity from given mass and radius.

There is a newer version of this package available.
See the version list below for details.
Install-Package UniverseSharp -Version 1.0.0
dotnet add package UniverseSharp --version 1.0.0
<PackageReference Include="UniverseSharp" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UniverseSharp --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: UniverseSharp, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install UniverseSharp as a Cake Addin
#addin nuget:?package=UniverseSharp&version=1.0.0

// Install UniverseSharp as a Cake Tool
#tool nuget:?package=UniverseSharp&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Universe Sharp

Build badge NuGet badge License

Library to facilitate physical calculations e.g. calculating cosmic velocity from given mass and radius.

Usage

Installing

dotnet add package UniverseSharp

Example usage

var myPlanet = new CelestialBody(radius: 4.5e6, mass: 2.5e24);
Console.WriteLine(myPlanet.FirstCosmicVelocity); //6089.1889625977403445034075310210229350530234828174250100542213675545
Console.WriteLine(myPlanet.SecondCosmicVelocity); //8611.413614758283000983304784383634439906931315731627144823861947177
Console.WriteLine(myPlanet.CalculateGravitationalAcceleration(height: 7e6)); //3.405142857142857451352755872914285714285
Console.WriteLine(myPlanet.Density); //6549.5861354689512037149341403096574845835444909202854993444150023369513416475003

You can also import UniverseSharp.Data.NASA namespace and use predefined objects.

Console.WriteLine(Planets.Earth.FirstCosmicVelocity); //7909.79026300202504910263375122164
Console.WriteLine(Planets.Earth.GravitationalAccelerationOnSurface); //9.82023222645293258

Console.WriteLine(Planets.Jupiter.Volume); //1431281810739355898836057.6446305537758196646
Console.WriteLine(Planets.Jupiter.Density); //1326.214715898230640321948098163419896463003

Console.WriteLine(Planets.Mars.SecondCosmicVelocity); //5027.04720184840644701259976144380
Console.WriteLine(Planets.Mars.Radius); // 3389500

IntelliSense documentation support

Docs Support

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

.NET 5.0 SDK

Installing

Clone this repository to your computer.

git clone https://github.com/KarolWojtasiuk/UniverseSharp.git

Then go to the repository directory.

cd UniverseSharp

Finally build library.

dotnet build UniverseSharp

Running the tests

Tests for this application is provided by xUnit. .NET Core contains a Test Runner, so you don't have to download anything.

Just run this command.

dotnet test UniverseSharp.Tests

Built With

  • xUnit - Testing framework
  • BigFloat - Arbitrary precision float number support

Universe Sharp

Build badge NuGet badge License

Library to facilitate physical calculations e.g. calculating cosmic velocity from given mass and radius.

Usage

Installing

dotnet add package UniverseSharp

Example usage

var myPlanet = new CelestialBody(radius: 4.5e6, mass: 2.5e24);
Console.WriteLine(myPlanet.FirstCosmicVelocity); //6089.1889625977403445034075310210229350530234828174250100542213675545
Console.WriteLine(myPlanet.SecondCosmicVelocity); //8611.413614758283000983304784383634439906931315731627144823861947177
Console.WriteLine(myPlanet.CalculateGravitationalAcceleration(height: 7e6)); //3.405142857142857451352755872914285714285
Console.WriteLine(myPlanet.Density); //6549.5861354689512037149341403096574845835444909202854993444150023369513416475003

You can also import UniverseSharp.Data.NASA namespace and use predefined objects.

Console.WriteLine(Planets.Earth.FirstCosmicVelocity); //7909.79026300202504910263375122164
Console.WriteLine(Planets.Earth.GravitationalAccelerationOnSurface); //9.82023222645293258

Console.WriteLine(Planets.Jupiter.Volume); //1431281810739355898836057.6446305537758196646
Console.WriteLine(Planets.Jupiter.Density); //1326.214715898230640321948098163419896463003

Console.WriteLine(Planets.Mars.SecondCosmicVelocity); //5027.04720184840644701259976144380
Console.WriteLine(Planets.Mars.Radius); // 3389500

IntelliSense documentation support

Docs Support

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

.NET 5.0 SDK

Installing

Clone this repository to your computer.

git clone https://github.com/KarolWojtasiuk/UniverseSharp.git

Then go to the repository directory.

cd UniverseSharp

Finally build library.

dotnet build UniverseSharp

Running the tests

Tests for this application is provided by xUnit. .NET Core contains a Test Runner, so you don't have to download anything.

Just run this command.

dotnet test UniverseSharp.Tests

Built With

  • xUnit - Testing framework
  • BigFloat - Arbitrary precision float number support

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 52 4/7/2021
1.0.0 44 4/7/2021