Plot integrals

brett_knoss
Wed, 27 Jan 2021 22:30:13 +0000
Visualization

I can plot derivatives using ForwardDiff and Plots

using ForwardDiff
using Plots

f(x)=x^2
df(x)=ForwardDiff.derivative(f(x), x)
plot(df)

but QuadGK.jl gives two answers so this method won’t work. Is there a way to plot the integral using QuadGK, or another integral package, that gives one output, like ForwardDiff?

7 posts - 3 participants