Linked Questions

0 votes
0 answers
125 views

Efficient ways to calculate a cumulative sums (integral) for Plotting [duplicate]

I want to calculate cumulative integrals of the form $$ f(x) = \int_{-\infty}^x dt\ F(t) $$ efficiently in Mathematica. $F(t)$ could be a simple function but also some random function that does not ...
Uwe.Schneider's user avatar
0 votes
0 answers
109 views

How do I perform the following numerical integration [duplicate]

I have the following integral to evaluate numerically: $$x(t) = \frac{1}{f(t)}\int_0^{t_b} t^m (t + n)^o \sin(pt) \mathrm{d}t \quad m,n,o,p \in \mathbb{R}$$ ...
gadha007's user avatar
550 votes
37 answers
132k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
34 votes
2 answers
2k views

How does Plot work?

I considered the following function: sin[x_] := Module[{}, Print["x=", x]; Sin[x] ] in Mathematica. Next, I tried to plot it using: ...
Dror's user avatar
  • 1,871
17 votes
5 answers
911 views

Mismatch between numerical and analytic evaluation of an integral

I evaluated the following integral $$\int_0^1 \sqrt{r} \left | \cos \left(\left(k+\frac{1}{2}\right) \pi r\right)\right | dr$$ ...
Raffaele Carlone's user avatar
23 votes
2 answers
2k views

How to obtain adaptive sampling as in Plot function?

Adaptive sampling in Plot function can capture the oscillation of a function with very few points. How can I get a similar sequence of point pairs without using <...
Kattern's user avatar
  • 2,571
9 votes
4 answers
2k views

Transform an InterpolatingFunction

I'd like to transform an InterpolatingFunction from NDSolve but can't figure out how. Here's an example. The equation I want to solve is ...
Chris K's user avatar
  • 20.3k
8 votes
1 answer
216 views

How to find a numerical antiderivative with NIntegrate methods?

@JimBelk asked in Interpolating an Antiderivative how to find a numerical antiderivative. I gave an answer that uses NDSolve with the default method for integrating ...
Michael E2's user avatar
  • 238k
0 votes
1 answer
1k views

Table in NIntegrate

I have an integral that I want to evaluate it once and store its values in a table so that I don't run the integration each time that I want to plot it. Its form is ...
hal's user avatar
  • 783
3 votes
1 answer
342 views

Interpolating functions and Look-up tables

This is just a general question about how InterpolatingFunctions work: If I have a complicated function that I don't want to have to evaluate many times over, does turning it into an ...
basementDweller's user avatar