r/cprogramming • u/O1234561 • Oct 12 '21
Need help
I need to create a program that calculates answers for this function y=(3+sqrt(1-sqrt(x3)))/4-x2. It must be calculates by using starting value A, step H, step’s coefficient C and function upper limit YM. Conditions H>0 and C>=1 must be true and function value y will be calculated in the following points: A, A+H, A+H+CH, A+C+CH+(C2)H while y<YM but no more than 18 results. Can someone guide me as i have no idea how to do this, the only program ive managed to create all on my own was one that calculated perimeter of triangle by using coordinates of the tips. :)
0
Upvotes
4
u/ptchinster Oct 12 '21
What have you tried so far?
General my programs are laid out:
1.) Get, sanitize, sanity check inputs
2.) Do your algorithm
3.) Output