resistor

package
v0.0.0-...-4eb613b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package resistor offers an API with functions to calculate resistance in an DC circuit using Ohm's law

Index

Constants

This section is empty.

Variables

Functions

func R

func R(v, i float64) float64

R returns resistance using Ohm's law when volt v and current i are known.

func Rpara

func Rpara(resists ...float64) (Rtotal float64)

Rpara return equivalent resistance for resistors arranged in parallel in a circuit

func Rser

func Rser(resists ...float64) (Rtotal float64)

Rser returns equivalent resistance for resistors arrange in series in a circuit

func Rvp

func Rvp(v, p float64) float64

Rvp calculates resistance in a circuit when volt v and power p are known

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL