Changeset 38889 in project


Ignore:
Timestamp:
08/26/20 16:25:44 (5 weeks ago)
Author:
Ivan Raikov
Message:

unitconv doc: version history update and partial update of unit definitions to use exact arithmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/unitconv

    r36040 r38889  
    5151 ;; define units of length
    5252 (define-unit meter     Length 1.0       m meters)
    53  (define-unit inch      Length 0.0254    in inches)
     53 (define-unit inch      Length 254/10000 in inches)
    5454 
    5555 ;; define units of mass and time
     
    6969
    7070<enscript highlight="scheme">
    71  (unit-convert meter inch 1) ->  39.3700787401575
    72  (unit-convert meter inch 2 3 4) ->  (78.740157480315 118.110236220472 157.48031496063)
    73  
     71 (unit-convert meter inch 1) ->  5000/127
     72 (unit-convert meter inch 2 3 4) ->  (10000/127 15000/127 20000/127)
     73
    7474 (unit-convert meter kilogram 1)
    7575 Error: (unitconv) unit-convert : given units are of different dimensions:
     
    161161; {{Conductance}} : {{(/ Current Potential)}}
    162162; {{Inductance}} : {{(/ (* Potential Time) Current)}}
     163; '''Electromagnetism'''
     164; {{Magnetic-Flux}} :  {{(/ (* Mass Area) (* (** Time 2) Current))}}
     165; {{Magnetic-Flux-Density}} :  {{(/ Mass (* (** Time 2) Current))}}
     166; {{Magnetic-Field-Strength}} :  {{(/ Current Length)}}
    163167; '''Chemistry'''
    164168; {{Concentration}} : {{(/ Substance Volume)}}
     
    382386</table>
    383387
     388==== Units of Magnetic Flux
     389
     390<table style="table { table-layout: fixed; }">
     391<col width="25%" /><col width="25%" /><col width="25%" /><col width="25%" />
     392<tr><th>Name</th><th>Quantity</th><th>Factor</th><th>Abbreviation(s)</th></tr>
     393<tr><td>tesla</td><td>Magnetic-Flux-Density</td><td>(/ kilogram (* ampere second second))</td><td>(T teslas)</td></tr>
     394<tr><td>weber</td><td>Magnetic-Flux</td><td>(/ (* kilogram meter meter) (* ampere second second))</td><td>(wb webers)</td></tr>
     395</table>
     396
     397==== Units of Magnetic Field Strength
     398
     399<table style="table { table-layout: fixed; }">
     400<col width="25%" /><col width="25%" /><col width="25%" /><col width="25%" />
     401<tr><th>Name</th><th>Quantity</th><th>Factor</th><th>Abbreviation(s)</th></tr>
     402<tr><td>ampere-per-meter</td><td>Magnetic-Field-Strength</td><td>(/ ampere meter)</td><td>(amperes-per-meter)</td></tr>
     403</table>
     404
    384405==== Units of Substance
    385406
     
    442463is created by procedure {{val-with-units}}:
    443464
    444  (use unitconv with-units)
     465 (import unitconv with-units)
    445466 (val-with-units 10 m) ->  #(10 #(unit meter (m meters) [Length] 1.0))
    446467
     
    469490=== Version history
    470491
     492; 4.0 : Using exact arithmetic [André Sá]
     493; 3.3 : Additional units of time [André Sá]
    471494; 3.0 : Ported to CHICKEN 5
    472495; 2.6 : Bugfixes in unit* and unit/
     
    488511=== License
    489512
    490  Copyright 2007-2018 Ivan Raikov.
     513 Copyright 2007-2020 Ivan Raikov, André Sá.
    491514 
    492515 This program is free software: you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.