Binomial Expansion
http://tibasicdev.wikidot.com/forum/t-630984/binomial-expansion
Posts in the discussion thread "Binomial Expansion" - Binomial expansionTue, 12 Nov 2019 12:08:31 +0000http://tibasicdev.wikidot.com/forum/t-630984#post-1724461Re: Binomial Expansion
http://tibasicdev.wikidot.com/forum/t-630984/binomial-expansion#post-1724461
Tue, 05 Mar 2013 12:06:18 +0000Xeda Elnara595803
You will probably want to use a string. Do you just want to display it, or return the string? The number to string is often referred to, but I find it to be too slow, especially when you only want to convert an integer. I typically use some variant of this:

;N is the number (non-negative integer) DelVar A".→Str1 Repeat not(int(B N10^(A→B sub("0123456789",1+int(10fPart(Ans)),1)+Str1→Str1 A-1→A End sub(Str1,1,length(Str1)-1→Str1

I think that will work, but I didn't test it. Then you can do your fun math by storing it as a string :)
]]>
http://tibasicdev.wikidot.com/forum/t-630984#post-1724236Binomial Expansion
http://tibasicdev.wikidot.com/forum/t-630984/binomial-expansion#post-1724236
Tue, 05 Mar 2013 03:54:14 +0000Silver Phantom1430989
so just today, we learned about binomial expansion and man do i want to make a program for it. anyway, i have the basic setup, (exponent nCr term number - 1)((coefficient)^exponent-term)((coefficient)^term) but i want to also show the variables like x^2y^3 or something like that with the coefficient. can yall help, thanks
]]>