Skip to main content
6 events
when toggle format what by license comment
Nov 3, 2022 at 2:17 comment added userrandrand @IonSme you could in principle define thing then define auxthing[a_,b_,c_]=thing (= not :=) then thingy[a_,b_,c_]:=NIntegrate[auxthing[a,b,c],{s,0,1}] but that would be a bit long to do.
Nov 2, 2022 at 23:18 comment added ions me Alternatively, I could define thing[] such that it takes as arguments every single variable in the expression, however, that's a bit ugly to have everywhere in my code, especially if it turns out that all of them are constants later.
Nov 2, 2022 at 23:16 comment added ions me However, oftentimes I am dealing with expressions with many variables, which I do not know a priori if they are going to be changing. Afterwards It's a little cumbersome to go back and redefine "thing" everywhere in my code.
Nov 2, 2022 at 23:14 comment added ions me That would be nice if I had the foresight to define thing as a function. However, oftentimes I am dealing with expressions with many variables, which I do not know a priori if they are going to be changing. Afterwards It's a little cumbersome to go back and redefine "thing" everywhere in my code.
S Nov 1, 2022 at 23:24 review First answers
Nov 2, 2022 at 2:26
S Nov 1, 2022 at 23:24 history answered RoberRM CC BY-SA 4.0