1,295 reputation
517
bio website
location
age
visits member for 2 years, 5 months
seen Aug 7 at 17:08

Dec
6
revised Histogram: Bars not stacked, not overlapped, but side by side?
added 275 characters in body
Dec
6
answered Histogram: Bars not stacked, not overlapped, but side by side?
Dec
4
comment Can I make a default for an optional argument the value of another argument?
super cute :-) +1
Dec
4
comment NDSolve and {C, K, Slot} and other built-ins as a variable name
@Szabolcs can you give your other example as an answer with the Boo example. This seems like the smoking gun for me that it is a bug and not a safety net. I can accept that and issue the bug report.
Dec
4
comment NDSolve and {C, K, Slot} and other built-ins as a variable name
@Szabolcs yes thanks I like these points. More what I am trying to get at. You are saying that it is a specific test that Mathematica is doing to try and stop the user from getting errors. It is not something that I will be able to ever trigger with my own definitions that get shadowed since must be somehow tested for by NDSolve itself (and if so it should do the same in DSolve, 1D cases etc) and I should file a bug report.
Dec
4
comment NDSolve and {C, K, Slot} and other built-ins as a variable name
I like this answer the most so far, as I find the idea intriguing that it is some kind of symbolic preprocessing that is causing the error. I wish I could think of a way to test this with a built in symbol that would never arise in such a context as C K and Slot all might be candidates for this
Dec
4
revised NDSolve and {C, K, Slot} and other built-ins as a variable name
Added major clarification to stress the interpretation of the question
Dec
4
comment NDSolve and {C, K, Slot} and other built-ins as a variable name
But I can get the same issue with using K as the variable instead of C which seems less likely to be occurring as a normalization. UpValues wont work since UpValues[0] will throw an error.
Dec
4
comment NDSolve and {C, K, Slot} and other built-ins as a variable name
@Szabolcs I really do understand this ... but why does it work in DSolve as an ODE? Also why can I make Protected Symbols, that work. Maybe I need to rewrite this as a challenge to create a user defined symbol that will cause NDSolve to give the specific error of "Input is not an ordinary differential equation" ... as I seem to have people just thinking about coding style. It really seems that NDSolve is checking for these `System`` symbols
Dec
4
revised NDSolve and {C, K, Slot} and other built-ins as a variable name
added function that was being discussed
Dec
4
revised NDSolve and {C, K, Slot} and other built-ins as a variable name
typo
Dec
4
comment Can I make a default for an optional argument the value of another argument?
:-) Yeah I am learning this day by day. Always happy to be wrong about such issues!
Dec
4
comment Can I make a default for an optional argument the value of another argument?
man thought I had this question in the bag ... then the giants come round ;-)
Dec
4
revised Can I make a default for an optional argument the value of another argument?
updated to reflect another answers post
Dec
4
comment Can I make a default for an optional argument the value of another argument?
ohhhhh didn't realize this works. Any thoughts on why Mathematica color codes the yy in the block red? Seems to think it is not used. Man this is soooo sweet you get the R behavior as well, you can make the default arguments expressions like 1/yy etc. Thanks for this!
Dec
4
revised Can I make a default for an optional argument the value of another argument?
Fixed langauge
Dec
4
comment Can I make a default for an optional argument the value of another argument?
Are you an R user? I love this feature in R ... never seen it in any other language.
Dec
4
answered Can I make a default for an optional argument the value of another argument?
Dec
4
revised NDSolve and {C, K, Slot} and other built-ins as a variable name
added 64 characters in body
Dec
4
revised NDSolve and {C, K, Slot} and other built-ins as a variable name
added 321 characters in body