[Boost-bugs] [Boost C++ Libraries] #4418: units::electron_charge units::current incorrect

Subject: [Boost-bugs] [Boost C++ Libraries] #4418: units::electron_charge units::current incorrect
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-10 03:05:04


#4418: units::electron_charge units::current incorrect
------------------------------------------+---------------------------------
 Reporter: mejames7760.atatatat.att.net | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: None
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: units charge current |
------------------------------------------+---------------------------------
 I was trying to implement http://hyperphysics.phy-astr.gsu.edu (Coulomb's
 Law example) and then determine the acceleration on a single charge "e" as
 a way of learning to use Boost::units. I was having lots of errors with
 wrong units which I have finally traced to incorrect dimensions of
 electric_charge and current. Please refer to the above link or any
 physics text book to verify the following.
 1. An "electron charge" is the base unit, you have "current" as a base
 unit.
 2. "current" is charge per time which is a derived unit which is measured
 in amps.
 3. "electron charge" is measured in number of electrons. A coulomb is the
 measure of the number of electrons and is 1/e.
 4. "electric_charge" is an okay term to use.
 5. If you swapped electric_charge <-> current you would still be wrong
 because current would then have charge*time instead of charge/time.
 Running Ubuntu 10.04 LTS with Boost 1.40.0

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4418>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC