What's the algorithm for finding scalar function satisfying div f=F if I know vector F?
There isn't one. div is not defined on scalars and the divergence of a vector would be a scalar. What did you really mean to ask?
Sorry, I meant grad f=F, and I want to get scalar function f from vector F (for instance electric potential from electric intensity).
Look at the following link for an example:
thanks, that's exactly what i was looking for
Separate names with a comma.