Chemical calculator/jq: Difference between revisions
no edit summary
(add markdown) |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1:
<syntaxhighlight lang="jq">
def masses: {
H: 1.008,
Line 160:
(plus(EN) | Parenthesized | Formula)
// (plus(EN) | optional(Parenthesized))
// (Parenthesized | optional(Formula)) ;
### input: .result
Line 189:
def assert(a;b):
if (a - b)|length > 1e-3 then "\(a) != \(b)" else empty end;
def task:
Line 206:
task
</syntaxhighlight>
|