expression 11*x^2 +x +15 Range = -2.5...2.5 Step = 0.1 This is what i have so far, const int rs = 12, en = 11, d4 = 5,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

expression 11*x^2 +x +15 Range = -2.5...2.5 Step = 0.1 This is what i have so far, const int rs = 12, en = 11, d4 = 5,

Post by answerhappygod »

expression

11*x^2 +x +15
Range = -2.5...2.5
Step = 0.1
This is what i have so far,
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 =
2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {

lcd.begin(16, 2);
}
void loop() {
int j = 0;
for(int i = -2.5; i <= 2.5; i+=0.1)
{
int m;
m = functionn(xarray);
lcd.print(m);
delay(400);
}
int functionn(int x){
int result;
result = (11)*(pow(x,2)) + x + 1;
return result;
}
I get an error cause i didnt call xarray function but idk
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply