P
pesh88
Hi, I am of a low level of experience in VBA, and I am struggling with
trying to do something.
I would like to use the sin function within vba.
The function is:
sin (x) = x - (x^3/3!) +(x^5/5!)-(x^7/7!)+(x^9/9!)-...
I understand that there is in fact a sin function inbuilt in vba
"sin(x)" however I would like the function to follow the steps of the
function I have expressed above. The main trouble I am having concerns
the factorials. VBA does not seem to understand the "!", and I cannot
simply type out the whole factorial, as it makes it too long that vba
cant seem to hack it!
If this could be done to the most simplified level it would be most
helpful
I hope this can be dealt with.
trying to do something.
I would like to use the sin function within vba.
The function is:
sin (x) = x - (x^3/3!) +(x^5/5!)-(x^7/7!)+(x^9/9!)-...
I understand that there is in fact a sin function inbuilt in vba
"sin(x)" however I would like the function to follow the steps of the
function I have expressed above. The main trouble I am having concerns
the factorials. VBA does not seem to understand the "!", and I cannot
simply type out the whole factorial, as it makes it too long that vba
cant seem to hack it!
If this could be done to the most simplified level it would be most
helpful
I hope this can be dealt with.