Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,11 +1,12 @@
|
|||
linearCombination: function [coeffs][
|
||||
combo: new []
|
||||
loop.with:'i coeffs 'x [
|
||||
case [x]
|
||||
when? [=0] []
|
||||
when? [=1] -> 'combo ++ ~"e(|i+1|)"
|
||||
when? [= neg 1] -> 'combo ++ ~"-e(|i+1|)"
|
||||
else -> 'combo ++ ~"|x|*e(|i+1|)"
|
||||
case x [
|
||||
0 -> []
|
||||
1 -> 'combo ++ ~"e(|i+1|)"
|
||||
neg 1 -> 'combo ++ ~"-e(|i+1|)"
|
||||
any -> 'combo ++ ~"|x|*e(|i+1|)"
|
||||
]
|
||||
]
|
||||
join.with: " + " 'combo
|
||||
replace 'combo {/\+ -/} "- "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue