Closed orestotel closed 5 years ago
isFibonacci.cpp
@orestotel what is the function of h(step) and d(amplifier) ?
@Abahkta19 Look them up in the file isFibonacci.c++. In fact, you just need to change the file a bit to fit the asin function. The variables there mean the same they mean here, so take a look.
If you still didn't understand, then: h - if it is equal to one, you iterate 1,2,3,4,5... values like normally, But if it equals to 2, for example, you will iterate like this: 2, 4, 6, 8... values. If 3, you will have it like this: 3, 6, 9, 12, 15, 18... Got it?
d is what you add to the result, as far as I understand. You can understand more by looking into isFibonacci.cpp
53ee08ffc8f7243dac1995e9c4552bc54084b22b See this file and write a similar program regarding the secont formula(one called atan) in photo. Use variables: a - from b - to h - step eps - precision d - amplifier s - sum k - number(see the photo and the referenced commit)
Thank you for your help in advance:) Happy Hacktoberfest.