math macro for multiple add, subtract, etc as detailed in the official 
examples of the math operators

[=1 =2 =3 =4 +[add[4]]

x - <$list filter="=1 =2 =3 =4 +[add[4]]"><<currentTiddler>></$list>

z - <<ragscalculator3 "=1 =2 =3 =4" add 4>>

\define ragscalculator3(cnumbm1,coperam,cnumbm2)
<$list filter="$cnumbm1$ +[$coperam$[$cnumbm2$]]"><<currentTiddler>></$list>
\end

<<ragscalculator3 "cnumbm1" coperam cnumbm2 >>
<<ragscalculator3 "=1 =2 =3 =4" add 4>>

ragscalculator3 : macro name
cnumbm1 : a series of numbers to have the final number of the macro added, 
etc to each
--- must be in " ", each number should have an "=" before it
coperam : the math operation you want preformed
for + : use "add"
for - : use "subtract"
for x : use "multiply"
for รท : use "divide"
cnumbm2: single number to be added to each of the cnumbm1 numbers

problem : the output doesn't have spaces between numbers of the final result

working on chaining the different basic math operators

with the RagsCalculator, it now has a Mn button which takes the result of 
the first operation and places it at the start of second operateion where a 
new math function and new second number can be entered for a new math 
operation.  This can be repeated again with a thied (and more) using the 
result from the previous operation. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/35bf1c0b-70ea-4f26-9b7e-bd508e340cee%40googlegroups.com.

Reply via email to