Download presentation

Presentation is loading. Please wait.

Published byArianna Wood Modified over 2 years ago

1
Modeling Quantities Goal –to establish a consistent method for representing physical quantities Why? –easier for newcomers to understand –common software solution for handling common problems units transformations quantity combinations (math, units propagation, error prop….) –establish a base data model component that can be used to build up more complex objects.

2
Modeling Quantities 3 components: Value Error Unit Error is abstract: 2 subtypes (substitutes): Sigma ErrorRange –confidence attribute Unit –prefix attribute

3
Modeling Quantities Specific Quantities –substitutable for Quantity –restrict the unit Flux: Jy Length: m, pc, lt-yr Frequency: Hz, cm, eV

4
m/s 4.5 pc Jy 21 m

5
m/s 4.5 pc Jy 21 m Alternatives: cm

6
Modeling Quantities: Challenges Quantity transformations –unit conversions * metric scaling * base unit (e.g. m Hz eV) –parsing from human readable form 5 Jy is more compact and convenient but harder to parse Comparisons & Processing Useful Functions: boolean near(q1, q2, tolerance) boolean withinError(q1, q2) boolean lessThan(q1, q2) boolean greaterThan(q1, q2) Quantity toQuantity(string) e.g. toQuantity(5 Jy) enables: greaterThan(Flux, 5 Jy)

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google