#Can someone make this not AI?

18 messages · Page 1 of 1 (latest)

flat star
#

I need this rewritten as an AI detector states that the code below is mostly AI generated, this is for a university assignment. Help please!

float compute_area(float a, float b, float c, float d, float lower, float upper){
   float width = 0.01;
   float area = 0.0;
   
    for (float x = lower; x < upper; x += width){
    float y = a * x * x * x + b * x * x + c * x + d;
    area += y * width;
   
     }
     
     
     return area;
   }
vernal shuttleBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

zealous merlin
#

lmao

flat star
#

yo?

zealous merlin
#

well did you write it with AI ?

flat star
#

assignment is hard as shit

idle hedge
#

If that code actually solves your problem, then there is a much easier solution if you know a bit about integrals.

zealous merlin
#

also

#

there is no such thing as an " AI detector"

#

at least one that is reliably correct all of the time

idle hedge
#

But I have a feeling that this isn't actually doing what it is supposed to....

flat star
#

whoever grades my assignemnt will likely know that

flat star
idle hedge
#

The code is simple. Except for changing some variable names or order of parameters, I don't see what you would want to change.

flat star
#

Alright thank you

vernal shuttleBOT
#

@flat star Has your question been resolved? If so, type !solved :)

flat star
#

!solved