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

Function max #406

Closed
solar05 opened this issue Jul 5, 2020 · 0 comments
Closed

Function max #406

solar05 opened this issue Jul 5, 2020 · 0 comments

Comments

@solar05
Copy link
Member

solar05 commented Jul 5, 2020

Implement the calculation function f(x) by the formula:
f(x) = x^2 for -2 <= x <2;
x^2 + 4x + 5 for x >= 2;
4 for x < -2.
Using this function for n given numbers, calculate f(x). Among the calculated values, find the biggest.

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

1 participant