168 reputation
6
bio website youtube.com/zonerarefatte
location San Diego, CA
age 25
visits member for 2 years, 6 months
seen 11 hours ago

Knowledge and understanding are quite different. Only understanding can lead to being, whereas knowledge is but a passing presence in it. (G.Gurdjieff)


Jun
6
asked Matrix as a function of $x$
Apr
1
asked Locate Blow-up in NDSolve with Whenevent
Mar
24
accepted Derivative of Interpolating Function
Mar
21
comment WhenEvent for several variables
Thanks a lot, it was enlightening!
Mar
21
accepted WhenEvent for several variables
Mar
21
comment How can I get WhenEvent to recognize criterion I specify?
mathematica.stackexchange.com/questions/44370/… See answer and comments, please. Thanks!
Mar
21
comment WhenEvent for several variables
Same error, even with the #... :(
Mar
20
comment WhenEvent for several variables
not exactly, I mean for any x!
Mar
20
comment How can I get WhenEvent to recognize criterion I specify?
I get the same error with this line (notice that phi(x,t) is my unknown function in NDSolve): WhenEvent[\[Phi][x, t] == 0, TsingE = t; Print[TsingE]; "StopIntegration"] I reckon is the same error, but doesnt' go away with any of your solutions.
Mar
20
comment WhenEvent for several variables
Thanks, now it actually gives me another error (sorry to bother you so much), NDSolve::nbnum1: The function value InterpolatingFunction[{{0.,10.}},{4,7,0,{25},{6},0,0,0,0,Automatic},<<1>>,{Devel‌​oper`PackedArrayForm,{0,<<25>>},{2.005,2.00496,2.00483,2.00462,2.00433,2.00397,<<‌​13>>,1.99603,1.99567,1.99538,1.99517,1.99504,1.995}},{Automatic}][x]==0 is not True or False when the arguments are {0.,<<3>>,{-0.000916735,-0.000908904,-0.000885598,-0.000847226,-0.00079441,-0.00‌​072804,-0.000649232,<<11>>,0.000649232,0.000728807,0.000795892,0.000849321,0.0008‌​88165,0.000911767,0.000919698}}. >>
Mar
20
comment WhenEvent for several variables
I've just run this now on version 9, same error!
Mar
20
comment WhenEvent for several variables
I've just linked a minimal .nb, unfortunately I cannot do any better, but essentially I do not think it is matter of syntax, because if I remove the line "WhenEvent[...]", everything works fine.
Mar
20
revised WhenEvent for several variables
added 183 characters in body
Mar
20
comment WhenEvent for several variables
It gives me always NDSolve::litarg: To avoid possible ambiguity, the arguments of the dependent variable in WhenEvent (...)should literally match the independent variables I think that this might be related with having 2 independent variable
Mar
20
revised WhenEvent for several variables
added 305 characters in body
Mar
20
comment WhenEvent for several variables
Wouldn't it be better to use Method -> {"EventLocator", "Event" -> phi[x,t]==0}]
Mar
20
comment WhenEvent for several variables
How can I deal with the fact that I have two variables? I mean, if I write WhenEvent[$\phi$[x,t]==0, Tsing=t], I don't think it would work...
Mar
20
asked WhenEvent for several variables
Mar
17
comment NMaximize issue and regularization
Oh yes, so sorry, fixed it now, it was in memory on my session.
Mar
17
comment NMaximize issue and regularization
Yes, it goes well till the NMaximize part, when I run it.