How to do this using macros in TeX. Something like \power{n}{k} - the power of n to the value k - but without using \multiply.
Something like this needs to be done
k_{n+1} = n^2 + k_n^2 - k_{n-1}
|
How to do this using macros in TeX. Something like Something like this needs to be done
|
||||
|
Use the
See the |
|||
|
|
|
Assuming you want to work with integers, and e-TeX is available, something like
seems about right. I've not tested for edge cases or made this 'maximum efficiency' as I'm not entirely sure what is required. |
|||
|
|
\numexpr) and show where you get stuck, you'd give people here something to start from. Or else, explain a little more about the context you need this for. The way you ask, it looks like you're asking people here to do your homework for you. – Stephan Lehmke Apr 10 '12 at 17:30\multiply? – Joseph Wright♦ Apr 10 '12 at 17:43