![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 1
Rep Power: 0
![]() |
C++ code for Binomial Series
I have to write a C++ programme to solve (1+b)^n. But I must write a function with the following declaration: double binomial(double b, int n, int precision) b has values 0<b<1 , n is any integer, precision greater than 1 and equal to the number of decimal places of the return value. I must also write a test driver to test for 15 values of b,n and precision.
I know very little code...any help will be deeply appreciated! Thanks alot in advance Nirmala.......qtnirmala@gmail.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|