Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'MeshFunctions and intersection of functions' topicStudent Support Forum > General > Archives > "MeshFunctions and intersection of functions"

Help | Reply To Topic
Author Comment/Response
ut1880h
10/19/09 9:27pm

I'm lost on the following usage of the Mesh and MeshFunctions options to Plot, using them to show the intersection of two functions, f and g:

Mesh->{{0}}
MeshFunctions -> {(f - g) /. x -> # &},...

The whole thing looks like this:
1. Define two functions:
{f, g} = {Sin[2 x], 1/2 Cos[5 x]};

2. Plot them showing intersection with large points:
Plot[{f, g}, {x, 0, 2 \[Pi]}, Mesh -> {{0}},
MeshFunctions -> {(f - g) /. x -> # &},
MeshStyle -> PointSize[Large]]

I have a basic understand of pure functions but the usage here baffles me.

Thanks for any help.

URL: ,
Help | Reply To Topic