Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have two functions $f$ and $g$ defined as:

$$f := \operatorname{Spline}(\operatorname{pointsBW}, t)$$

$$g:=x \rightarrow \frac{1}{x}\int_0^x f\;dt$$

where $f$ is a functional form for a set of data points. I am trying to find the intersection of these using Maple 15. How would I do this?

share|improve this question

1 Answer 1

Of course, you will have obtained pointsBW in your own way.

The two curves f and g will be equal at the points where f-g is zero.

restart:
randomize():
wx:=LinearAlgebra:-RandomVector(7,generator=0..1.0):
wy:=LinearAlgebra:-RandomVector(7,generator=0..1.0) + Vector(7,5):
pointsBW := Matrix([wx,wy]):

f:=unapply(CurveFitting:-Spline(pointsBW,t),t):
g:=x->1/x*int(f(s),s=0..x):

plot([f,g],0.0..1.0,view=5.0..6.0);
plot(f-g,0.0..1.0,view=-1.0..1.0,color=blue);

map(fnormal,Student:-Calculus1:-Roots(f(x)-g(x),x=-0.0..1.0));
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.