Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q 6 & 7 #2

Open
sanu-cpu opened this issue Jun 19, 2020 · 1 comment
Open

Q 6 & 7 #2

sanu-cpu opened this issue Jun 19, 2020 · 1 comment

Comments

@sanu-cpu
Copy link

in your question 6 in cousera course use
Implement the mathematical function f(x)=−5x5+67x2−47 f(x) = -5 x^5 + 67 x^2 - 47 f(x)=−5x5+67x2−47 as a Python function. Then use Python to compute the function values f(0)f(0)f(0), f(1)f(1)f(1), f(2)f(2)f(2), and f(3)f(3)f(3). Enter the maximum (largest) of these four values calculated below.

A common error for this question is to fail to read the directions above carefully and submit your answer in the incorrect form. As a coder, always remember to note exactly what answers your code (and quiz questions) should produce.

plz help to solve this

in question 7 answer are wrong
can you help for that

@Amerax
Copy link

Amerax commented Jul 8, 2024

I am a bit late but for anyone who still doesn't know, you can use this.

def function(x):
print((-5)x**5+ 67x**2 -4)

function(0)
function(1)
function(2)
function(3)

This would be the output:

-47
15
61
-659

Meaning the answer would be 61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants