Simple integration question

Hello,

I am trying to integrate the generated function over one of the borders of my domain, but I cannot figure out how. I tried cout << int1d(border)(function) but int1d wants a mesh. To make a 1d mesh I believe I am supposed to use meshL, but that is not a reserved word when I type it in and nothing happens.

Also, what is the best way to log numerical calculations?

Thanks for the help.

The syntax is int1d(mesh, border)(function).

1 Like