Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double formula(const int i, const int j);
- double formula(const int i, const int j){
- if(i==j){
- return ((1.0/(1.0+i+j))+1);
- }
- else{
- return (1.0/(1.0+i+j));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement