Chemical calculator/jq: Difference between revisions

no edit summary
(correction)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1:
<syntaxhighlight lang="jq">
<lang jq>
def masses: {
H: 1.008,
Line 189:
 
def assert(a;b):
if (a - b)|length > 1e-3 then "\(a) != \(b)" else empty end;
 
def task:
Line 206:
 
task
</syntaxhighlight>
</lang>