Comments for page "Pascal's Triangle"
http://tibasicdev.wikidot.com/forum/t-46061/pascal-s-triangle
Posts in the discussion thread "Pascal's Triangle"Sun, 18 Aug 2019 23:43:07 +0000http://tibasicdev.wikidot.com/forum/t-46061#post-123155Re: Routine Question
http://tibasicdev.wikidot.com/forum/t-46061/pascal-s-triangle#post-123155
Tue, 11 Mar 2008 19:01:38 +0000burr740
Yours is smaller, but DL's is faster — why not show both of them on the page?
]]>
http://tibasicdev.wikidot.com/forum/t-46061#post-122862Re: Routine Question
http://tibasicdev.wikidot.com/forum/t-46061/pascal-s-triangle#post-122862
Tue, 11 Mar 2008 10:29:09 +0000Zaphod Beeblebrox30802
Now, with your optimized routine, I don't know whether it's better anymore, but:

seq(R nCr N,N,0,R

It takes care of the R=0 case.

]]>
http://tibasicdev.wikidot.com/forum/t-46061#post-122693Re: Routine Question
http://tibasicdev.wikidot.com/forum/t-46061/pascal-s-triangle#post-122693
Tue, 11 Mar 2008 01:52:56 +0000burr740
@DL: You can simplify your routine further:

:{1 :If R :2^Rbinompdf(R,.5

]]>
http://tibasicdev.wikidot.com/forum/t-46061#post-122649Re: Routine Question
http://tibasicdev.wikidot.com/forum/t-46061/pascal-s-triangle#post-122649
Mon, 10 Mar 2008 23:47:47 +0000DarkerLine961
What's your routine, out of curiosity?

(and my routine gets considerably smaller when you're not interested in the R=0 case)

]]>
http://tibasicdev.wikidot.com/forum/t-46061#post-122604Routine Question
http://tibasicdev.wikidot.com/forum/t-46061/pascal-s-triangle#post-122604
Mon, 10 Mar 2008 22:10:50 +0000Zaphod Beeblebrox30802
I originally created this page with a routine, that wasn't as optimized as it could be. DarkerLine improved upon this and put in a new algorithm that is small and faster. As of a few minutes ago, I realized that my routine could've been condensed considerably. DarkerLine's routine is faster when R>~15 (I conducted some shaky tests) and mine is smaller. What I'm wondering is whether I should append my routine to the page, or create a new page called "Pascal's Triangle (Alternate)" or something similar.
]]>