| MATLAB Central > MATLAB Newsreader > Bug: subfunctions versus overloaded functions |
|
|
|
Subject: Bug: subfunctions versus overloaded functions From: John D'Errico Date: 14 May, 2009 13:10:04 Message: 1 of 10 |
|
I decided to change my nextprime code to allow inputs above 2^32, but still as doubles. This required that I had to change isprime to allow arguments above 2^32. Since isprime is a simple code, trivial even, using trial divisions by the primes below sqrt(N), this should be an easy thing to do. I just added a subfunction called isprime that allowed inputs up to 2^46. The code is identical to the built-in isprime, except for a different range. Since it takes about a second to build the list of primes up to 2^23, this seems about the upper limit of acceptability to me. |
|
Subject: subfunctions versus overloaded functions From: Steven Lord Date: 14 May, 2009 14:24:58 Message: 2 of 10 |
|
|
|
Subject: subfunctions versus overloaded functions From: John D'Errico Date: 14 May, 2009 14:39:01 Message: 3 of 10 |
|
"Steven Lord" <slord@mathworks.com> wrote in message <guh9jn$1bk$1@fred.mathworks.com>... |
|
Subject: subfunctions versus overloaded functions From: Charlie D. Date: 14 May, 2009 16:54:03 Message: 4 of 10 |
|
"John D'Errico" <woodchips@rochester.rr.com> |
|
Subject: subfunctions versus overloaded functions From: John D'Errico Date: 14 May, 2009 17:34:02 Message: 5 of 10 |
|
"Charlie D." <ch1ar2le3s.d4av5id6so7n.removeNumbers@a8t9t.net> wrote in message <guhibb$ghs$1@fred.mathworks.com>... |
|
Subject: subfunctions versus overloaded functions From: Yair Altman Date: 14 May, 2009 18:58:02 Message: 6 of 10 |
|
"John D'Errico" wrote ... |
|
Subject: subfunctions versus overloaded functions From: Loren Shure Date: 15 May, 2009 13:31:41 Message: 7 of 10 |
|
In article <guhpjq$8gs$1@fred.mathworks.com>, altmanyDEL@gmailDEL.comDEL |
|
Subject: subfunctions versus overloaded functions From: Mason Freed Date: 23 Feb, 2011 01:29:04 Message: 8 of 10 |
|
Loren Shure <loren@mathworks.com> wrote in message <MPG.247738c679bc0ce9899af@news.mathworks.com>... |
|
Subject: subfunctions versus overloaded functions From: Steven_Lord Date: 23 Feb, 2011 14:46:49 Message: 9 of 10 |
|
|
|
Subject: subfunctions versus overloaded functions From: Mason Freed Date: 23 Feb, 2011 16:23:08 Message: 10 of 10 |
|
"Steven_Lord" <slord@mathworks.com> wrote in message <ik36kp$h1o$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| oop | per isakson | 23 Feb, 2011 13:05:19 |
