ElectricityCalculator 1.0.2

dotnet add package ElectricityCalculator --version 1.0.2
NuGet\Install-Package ElectricityCalculator -Version 1.0.2
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="ElectricityCalculator" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ElectricityCalculator --version 1.0.2
#r "nuget: ElectricityCalculator, 1.0.2"
#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.
// Install ElectricityCalculator as a Cake Addin
#addin nuget:?package=ElectricityCalculator&version=1.0.2

// Install ElectricityCalculator as a Cake Tool
#tool nuget:?package=ElectricityCalculator&version=1.0.2

Electricity Calculator - NugetPackage

This is a Comprehensive Library created to help in Electricity Solutions with functions to help perform electrical calculations such as calulating resistor values, adding resistor values in parallel and series, evaluating Electrical Power, Capacitance etc.

How to Use the Library/Nuget package

  • Install the Nuget package into your project

  • Add the Library Refrences where needed using ElectricityCalculator;

  • To Add Resistor values in Series, Simply Call the Add Static method and pass in an array of the values: Resistor.AddParallel(double[] values) Resistor.AddSeries(double[] values)

  • To calculate resistor value based on resistance code, instantiate the resistor class and initialize the properties such as color bands, multiplier color, tolerance color and temperature colors.

  • Call the Calulate method and pass in the resistor obeject created. resistor.CalulateColorCode(resistor)

Classes Used

The following classes were implemented and can be called. Resistor.cs - Containes properties that can be set to represent a given resistor with resistor values.

Properties -

public ResistorBands BandType decimal Value Colors Band1 Colors Band2 Colors Band3 Colors Multiplier Colors Tolerance Colors TemperatureCoefficient { get; set; }

Methods

public static double AddSeries(double[] values)

  • Takes in an array of resistor values and returns the result after adding serially

public static double AddParallel(double[] values)

  • Takes in an array of resistor values and returns the result after adding parallelly

public string CalulateColorCode(Resistor resistor)

  • Takes in a Resistor object and Calulates the value of the resistor based on the Color Bands

Enums

ResistorBands

public enum ResistorBands { _3Band = 1, _4Band, _5Band, _6Band }

ColorCodes

public enum Colors { Black = 0, Brown, Red, Orange, Yellow, Green, Blue, Violet, Grey, White, Gold, Silver }

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • 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.2 209 1/16/2023
1.0.0 177 1/16/2023

This is the first version and at such is open for contribution. Do well to try out the tool and give us feedback.