I think that I am always stuck in the mathmatica grammar. -_-a. Now I am trying to get the time-dependent function H[t], which is correlated to what happens at t’. So I need to integrate the time t’ (from -infinity to infinity) to obtain the function with the time t. The code is simple as follows. I think that there are simple problems in Integrate or NSolve… Could you please help me ? Thank you very much in advance.
Thank you, Frank, for the suggestion but I couldn’t understand exactly what you suggested.
Actually, the difficulty that I think is that the function H[t] which I want to obtain is in the symbolic integration and is even a function of time. Even I am not sure if NSolve is a right command in this case. I have fully tried to search for any leads in archives, but I couldn’t find a similar situation to this. Could you help me, please? Any information would be very appreciated.
Here is the code which I corrected some typos and unit dimensions.
Are you trying to solve an integral equation? If so, NSolve is not the way to do it.
Also, your definition of Intg has H_?NumericQ which will not accept a function as a second argument.
Here, W[q] is a known function (and sorry for typos in previous one, it’s better that q needs to be exchanged to t).
If H[T] is not known, the integration cannot be done. Maybe, just by guessing H[t] and solving above equation iteratively (or self-consistent ?), then H[t] may be solved.
Then, the problem that I have is that how I let the program recognize this. -_____- a
I was illustrating that your definition of Intg would not handle a function as a second argument.
However, the main point is that you’re trying to solve an integral equation, which NSolve won’t do.
Can you convert your problem to a differential equation and use NDSolve?
Actually, I tried this, but this problem cannot be converged to the differential equation, I think.
Rather, if I integrate the previous equation (I mean the equation in NSolve), the simpler equation is obtained as follows.
8 \[Pi] v (Intg[t, H]) - \[Lambda] G[t] == 0
Here, Intg[t,H] and G[t] are already defined before. If we differentiate this function with t, then the previous equation (that I want to solve) is obtained again. If we differentiate higher order, it will be more complex to solve.
Maybe, is it good to model/guess H[t] first (using some parameters) and then to use FindFit ?
In the meantime, I will try if some transformation (Laplace or Fourier…) can reduce the complexity of this problem…