| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 2 months |
| seen | 8 hours ago | |
| stats | profile views | 44 |
|
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 |
|
Dec 4 |
comment |
NDSolve and {C, K, Slot} and other built-ins as a variable name @OleksandrR. @whuber is C really a "reserved keyword" like in C? Seems more like a library function. It would be stupid to define my own printf function and use it in C, but it certainly wouldn't give me an error for doing so. That is this seems to be more than a Shadowing issue like people seem to think. Can anyone define a symbol in Mathematica that gives the same error? |
|
Dec 4 |
revised |
NDSolve and {C, K, Slot} and other built-ins as a variable name added 764 characters in body; edited tags |
|
Dec 4 |
comment |
NDSolve and {C, K, Slot} and other built-ins as a variable name But why does the "fix" not work in my second example? |
|
Dec 4 |
comment |
NDSolve and {C, K, Slot} and other built-ins as a variable name Try it. It does. Also the 1d case with capital C works in version 9 as well |
|
Dec 4 |
comment |
NDSolve and {C, K, Slot} and other built-ins as a variable name Again I get this, but this breaks almost all code written by ecologists that don't understand this (which in my lab is every single person but me ... hundreds and hundreds of models, it will stop any upgrade to v9 without a lot of convincing). I want to understand why the 2d case fails, but the 1d doesn't. |
|
Dec 4 |
asked | NDSolve and {C, K, Slot} and other built-ins as a variable name |
|
Dec 3 |
accepted | EstimatedProcess hangs with documentation example |