#include <iostream>
#include<cmath>
int main ()
{
double val = 0;
double result = 0;
for (val =- 3; val <= 5; val+=0.5)
{
// this is complete gibberish, what are you trying to do?
/* result=(-4 val*-4 val*-4 val-3 val*3 val-15 val+22) /
abs (2- val*2- val*2- val*2 val)+sqrt(2 val*2 val+8); */
std::cout << val << "\t" << result << "\n";
}
return 0;
}
i really appreciate it but in my college we never learned dividend or divisor if i submit this i will get a zero in class because my professor would know i got help. i think i know what to do now but one last thing furry guy can you write me the formula without splitting the equation into smaller parts and not including dividenend and divisor cause we havent learned that yet. i tried writing the equation like this is it correct?
thank you so much Furry guy now how do i put it all together to print out this output you gave me.
-3 3.7759 positive
-2.5 3.57265 positive
-2 3.13203 positive
-1.5 2.6363 positive
-1 1.97648 positive
-0.5 1.43406 positive
0 1.05882 positive
0.5 0.912797 positive
1 0.733136 positive
1.5 0.532635 positive
2 0 zero
2.5 -0.589759 negative
3 -0.987092 negative
3.5 -1.31385 negative
4 -1.5415 negative
4.5 -1.74319 negative
5 -1.90892 negative
This is what i have so far
//this is the output of my first program
#include <iostream>
#include<cmath>
using namespace std;
int main ()