Timeline for Module that prints first m positive odd integers and returns the square root of the sum of them
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 11, 2016 at 6:28 | comment | added | Dr. belisarius | @TimothyWofford of course .p. I don't program and drive | |
Mar 11, 2016 at 6:25 | comment | added | Timothy Wofford | @Dr.belisarius, "Was typing from my phone while driving." Scariest thing I've read in a while. I hope you were joking. | |
Mar 11, 2016 at 4:43 | comment | added | Dr. belisarius | @BobHanlon Sure, I was just trying to show the general form to enable the OP to add further validations | |
Mar 11, 2016 at 4:38 | comment | added | Bob Hanlon |
The LHS can be shortened to g[n_Integer?Positive]
|
|
Mar 11, 2016 at 3:48 | comment | added | Dr. belisarius | @Kelly Oh, well. I disagree. You came here seeking for help and you should pay with the same coin you got. | |
Mar 11, 2016 at 3:45 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
deleted 1 character in body
|
Mar 11, 2016 at 3:44 | comment | added | Kelly | I got some help from my friend who is a computer science major! It works now! I don't want to post the exact answer because I'm not the only one with this assignment and I don't just want to give it away. Thank you for all of your help! | |
Mar 11, 2016 at 3:17 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 21 characters in body
|
Mar 11, 2016 at 3:09 | comment | added | RunnyKine |
The answer is always going to be an integer, in fact, its always going to be n , so the N is probably not required.
|
|
Mar 11, 2016 at 3:04 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
deleted 1 character in body
|
Mar 11, 2016 at 2:53 | comment | added | Dr. belisarius | @RunnyKine Was typing from my phone while driving. Now that I left the highway I hope to make less mistakes :) | |
Mar 11, 2016 at 2:52 | comment | added | RunnyKine | Lol. You need a control experiment. +1 | |
Mar 11, 2016 at 2:51 | comment | added | Dr. belisarius | @RunnyKine Damn. You're too clever. Clearly an outlier :) | |
Mar 11, 2016 at 2:51 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
deleted 4 characters in body
|
Mar 11, 2016 at 2:50 | comment | added | RunnyKine |
But, but, the square root of 9 is 3. It should be Sqrt@Tr@#
|
|
Mar 11, 2016 at 2:49 | comment | added | Dr. belisarius | @RunnyKine I was running a social experiment :) | |
Mar 11, 2016 at 2:48 | history | edited | Dr. belisarius | CC BY-SA 3.0 |
added 6 characters in body
|
Mar 11, 2016 at 2:47 | comment | added | RunnyKine | The square root of 9 (1+3+5) is certainly not 35 | |
Mar 11, 2016 at 2:45 | history | answered | Dr. belisarius | CC BY-SA 3.0 |