Commit graph

612 commits

Author SHA1 Message Date
Tiffany Bennett
bbcc6978c9 Replace int- prefixed units with doc comments
Previously all the customary units had int- prefixed to distinguish them
from historical measurements, but doc comments accomplish this task better.
2016-10-01 23:16:58 -04:00
Tiffany Bennett
5ccb9d064f Allow of in right-hand side of conversion 2016-10-01 23:03:39 -04:00
Tiffany Bennett
d629d707de Tighten cutoff for printing exact fractions
The volume of egg whites being 473176473/16000 is mostly line noise, not
useful information.
2016-10-01 22:47:51 -04:00
Tiffany Bennett
bb3d781df7 Cache into a temp file instead in case it fails
Should make rink behave better when run offline, and when the source
goes down.
2016-10-01 22:42:51 -04:00
Tiffany Bennett
1c474736ea Fix 0 s rendering as " (time)" 2016-10-01 22:31:19 -04:00
Tiffany Bennett
a9485f01f8 Fix broken datetime duration addition 2016-10-01 22:23:35 -04:00
Tiffany Bennett
1b5a85c325 Disable chrono-humanize in unit tests 2016-10-01 22:15:13 -04:00
Tiffany Bennett
7f27ad2ab8 Merge branch 'substances' 2016-09-28 23:22:32 -04:00
Tiffany Bennett
9c3cb15d8f Show name and docs for substances 2016-09-28 23:20:17 -04:00
Tiffany Bennett
8616bb0ca8 Add substances for elementary particles 2016-09-28 23:02:36 -04:00
Tiffany Bennett
a205f26e6c Allow references to other properties in substances 2016-09-28 23:01:48 -04:00
Tiffany Bennett
e29787c0fb Implement addition of substances 2016-09-28 22:11:33 -04:00
Tiffany Bennett
78c3613db4 Add conversion to substances 2016-09-28 21:29:44 -04:00
Tiffany Bennett
4214c638b8 Fix some issues with substance conversions 2016-09-28 21:23:02 -04:00
Tiffany Bennett
64f0d71aa7 Add conversion to output values of substances 2016-09-28 16:11:56 -04:00
Tiffany Bennett
661f30a998 Better error on undefined value-conversion 2016-09-28 15:45:20 -04:00
Tiffany Bennett
cd832100af Show only substance name in some places
e.g. Operation is not defined: <1 (dimensionless) egg> * <1 (dimensionless) egg>
2016-09-28 15:36:57 -04:00
Tiffany Bennett
83427e5b94 Warn on conflicting properties, fix conflicts 2016-09-28 15:29:59 -04:00
Tiffany Bennett
1eec919995 Add tab completion of substances and properties 2016-09-28 10:54:34 -04:00
Tiffany Bennett
57ee25643a Add name to substances, dedup fields with Rc 2016-09-28 10:37:07 -04:00
Tiffany Bennett
d9eb86fcca Move celestial body definitions to substances 2016-09-28 00:32:11 -04:00
Tiffany Bennett
d63e5d6d7c Fix wrong math in substance access 2016-09-28 00:31:33 -04:00
Tiffany Bennett
44aeb2fccf Update definitions to use substances 2016-09-27 23:46:51 -04:00
Tiffany Bennett
6080101500 Add shorthand def syntax for countable substances 2016-09-27 23:45:16 -04:00
Tiffany Bennett
29df329fd1 Print countable substances better 2016-09-27 23:35:49 -04:00
Tiffany Bennett
275f28a96f Allow of syntax in unit definition files 2016-09-27 22:25:28 -04:00
Tiffany Bennett
305874a0d0 Handle dependency resolution of substances 2016-09-27 22:25:11 -04:00
Tiffany Bennett
6fba23c587 Change how substances handle dimensionless amounts 2016-09-27 22:24:39 -04:00
Tiffany Bennett
f50fc22e0c Implement the 'of' operator 2016-09-27 13:20:50 -04:00
Tiffany Bennett
92177910a2 Improve rendering of substances 2016-09-27 12:54:11 -04:00
Tiffany Bennett
3f0a40a480 Add input and output names to properties 2016-09-27 12:35:17 -04:00
Tiffany Bennett
fb4b9981e1 Add amount field and impl Mul+Div for Substance 2016-09-27 12:19:35 -04:00
Tiffany Bennett
33ad094e20 Use Substance::to_reply in eval_outer 2016-09-27 12:19:16 -04:00
Tiffany Bennett
1cf68cffa4 Add lookup, repr, and printing for substances 2016-09-27 11:57:25 -04:00
Tiffany Bennett
2d2fc984a9 Load substances into context 2016-09-27 11:14:26 -04:00
Tiffany Bennett
ed945e4b6e Add parsing for substance definitions 2016-09-27 10:58:17 -04:00
Tiffany Bennett
8b1c1a6186 Add parsing for 'of' syntax 2016-09-27 10:43:25 -04:00
Tiffany Bennett
3e05f74f1d Fix failing tests 2016-09-27 10:42:40 -04:00
Tiffany Bennett
3ab99799fe Fix panic when multiplying dates 2016-09-26 09:42:14 -04:00
Tiffany Bennett
06a4456c72 Add tau 2016-09-26 00:56:06 -04:00
Tiffany Bennett
c3f436806e Use floats for roots and non-integer powers 2016-09-26 00:54:28 -04:00
Tiffany Bennett
9fff8b71c6 Fix angular momentum quantity, add flow rate
Removes spin because of conflict.
2016-09-26 00:46:05 -04:00
Tiffany Bennett
efd3182f46 Merge branch 'float2' 2016-09-26 00:37:07 -04:00
Tiffany Bennett
57a4a239fe Add several float trig functions 2016-09-26 00:36:31 -04:00
Tiffany Bennett
b5cec68217 Always consider floats as approx. when displayed 2016-09-26 00:05:25 -04:00
Tiffany Bennett
1b3109a263 Implement sin() using floats 2016-09-26 00:01:35 -04:00
Tiffany Bennett
0c07ff1541 Add machine floats to Num 2016-09-26 00:01:23 -04:00
Tiffany Bennett
1995aedf4b Refactor most Mpq use behind Num 2016-09-25 23:23:55 -04:00
Tiffany Bennett
0619357805 Add missing copyright headers 2016-09-25 23:16:11 -04:00
Tiffany Bennett
d35bebbd5b Split code out of eval.rs 2016-09-25 21:13:35 -04:00