Message Boards Message Boards

0
|
4059 Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Avoid error in the following symbolic integration?

I have attached a code in short0.nb that produces an erroneous result - see colour comments in the file. The error is in the integration of the function curr[t] between t and t+T, see the line with the defined variable avcurr. When this calculation is split into two parts in the same document, it is done correctly. When it is done independently and - importantly - on another notebook, see attached test.nb, then the results is correct again. Any ideas?

Attachments:
POSTED BY: Lev Kantorovitch
5 Replies

Thanks, Hans. I have asked somebody in Mathematica to have a look. When they come back to me, I'll let everybody know.

POSTED BY: Lev Kantorovitch

Interesting. I don't know what happens. But if I change the names of variables in the integration both terms are equal. See notebook at the very end.

Attachments:
POSTED BY: Hans Dolhaine

also, if you look down the same notebook where you added your command, I split the function curr[t] into two parts and performed the same calculation for each of them. There is not term with t in there at all! The result is correct this way. Weird!

POSTED BY: Lev Kantorovitch

of course, this is that very error I was talking about, it should not contain that term. If you look at the test.nb where the same calculation is done starting immediately from curt[t], the correct result is obtained without the t. I have no idea why this happens. That is precisely my question.
- sorry, may be I misunderstood your answer, then , please, explain.

POSTED BY: Lev Kantorovitch

Your avcurr contains a term proportional to t . See attached notebook, Out[26]

Attachments:
POSTED BY: Hans Dolhaine
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract