MPI - passing function as a parameter
Posted
by
Hmyzak
on Stack Overflow
See other posts from Stack Overflow
or by Hmyzak
Published on 2011-03-06T08:04:16Z
Indexed on
2011/03/06
8:10 UTC
Read the original article
Hit count: 166
Hi, is there any how how to pass function as a parameter when starting program in C? I am implementing app for integral aproximation, and all I need is to type a function I want to work with, when starting app. I tried (e.g.) 2/(2+2*x), but I only get back "2". When I write to application directly, there is no problem. Is there any simple way of getting this? Maybe redistribute it to more parametres? Like app.c number number*x number *x*x number *x*x*x... ?
Thanks
© Stack Overflow or respective owner