[system] / trunk / pg / lib / Units.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/Units.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3576 Revision 3655
49# fundamental units given above. If the power of the fundamental unit is 49# fundamental units given above. If the power of the fundamental unit is
50#not included it is assumed to 50#not included it is assumed to
51# be zero. 51# be zero.
52 52
53my $PI = 4*atan2(1,1); 53my $PI = 4*atan2(1,1);
54# 9.80665 m/s^2 -- standard accelearationof gravity
54 55
55my %known_units = ('m' => { 56my %known_units = ('m' => {
56 'factor' => 1, 57 'factor' => 1,
57 'm' => 1 58 'm' => 1
58 }, 59 },
286 'm' => 1, 287 'm' => 1,
287 'kg' => 1, 288 'kg' => 1,
288 's' => -2 289 's' => -2
289 }, 290 },
290 'lb' => { 291 'lb' => {
291 'factor' => 4.45, 292 'factor' => 4.4482216152605,
292 'm' => 1, 293 'm' => 1,
293 'kg' => 1, 294 'kg' => 1,
294 's' => -2 295 's' => -2
295 }, 296 },
296 'ton' => { 297 'ton' => {
326 'm' => 2, 327 'm' => 2,
327 'kg' => 1, 328 'kg' => 1,
328 's' => -2 329 's' => -2
329 }, 330 },
330 'lbf' => { 331 'lbf' => {
331 'factor' => 1.355, 332 'factor' => 1.35582,
332 'm' => 2, 333 'm' => 2,
333 'kg' => 1, 334 'kg' => 1,
334 's' => -2 335 's' => -2
335 }, 336 },
336 'cal' => { 337 'cal' => {

Legend:
Removed from v.3576  
changed lines
  Added in v.3655

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9