Sha256: 1b809ea6cad6792cb0220befd2443a8fd857fb7eb557f59085ee8b708f004aaa

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

UnitMeasurements::Resistance = UnitMeasurements.build do
  system :metric do
    primitive :Ω

    si_unit :Ω, aliases: [:ω, :ohm, :ohms, :"reciprocal siemens"]
    unit :S, value: "1 Ω", aliases: [:siemens, :mho, :mhos]
    unit :"V/A", value: "1 Ω", aliases: [:"V·A⁻¹", :"volt/amp.", :"volts/amp.", :"volt/ampere", :"volts/ampere", :"volt per ampere", :"volts per ampere"]
  end

  system :centimetre_gram_second do
    primitive :statΩ

    unit :abΩ, value: "1e-9 Ω", aliases: [:abω, :abohm, :abohms]
    unit :statΩ, value: "8.98755178737e+11 Ω", aliases: [:statω, :statohm, :statohms]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unit_measurements-3.8.0 lib/unit_measurements/unit_groups/resistance.rb
unit_measurements-3.7.0 lib/unit_measurements/unit_groups/resistance.rb
unit_measurements-3.6.0 lib/unit_measurements/unit_groups/resistance.rb