Homework on Functions - Questions

A function makes a computation to change your input to a different output
a) f=4

b)7
c)0

1.A function is math equation where you provide an input and receive an output.

  1. a) 4
    b) 17
    c) o

  2. f(x) = (x / 4) - 5

1 Like

What happened to answer number 3šŸ¤”

  1. A function is a distinctive code that is fed parameters as INPUT and it carries out COMPUTATION based on the parameters and then delivers the OUTPUT. A simple example could be square where you feed in a number as the *input parameter such as 4 squared * for example and the computation (i.e. 4 squared is 4x4) is carried out to give you the output of 16.

  2. a) 4
    b) 17
    c) zero i.e. 0

  3. f(x) = (x/4) -5

1 Like
  1. A function takes an input and performs certain mathematical tasks with it, after which it produces an output.
  2. a) 4 b) 17 c)0
  3. f(x) = x / 4 - 5
1 Like

a function is an equation that stays the same the sum of the equation changes based on the number you put into it.

a. 4
b.17
c. 0

  1. f(x)= X/4-5
1 Like
  1. Describe what a function does in your own words
    function is a formula that processes an ā€˜input’ to generate ā€˜output’

  2. Calculate the output of the following function
    a. 4
    b. 17
    c. 0

  3. f(x) = (x/4) - 5

1 Like

4, 17, 0

f(x) = x / 4 -5

1 Like
  1. Describe what a function does in your own words
    A formula that can take input and gives a certain outcome that can vary based upon the input in the function.
  2. Calculate the output of the following function
    f(x) = (x^2 if x = even; x+10 if x is odd)
    f(2) = (2^2) = 4
    f(7) = (7+10) = 17
    f(0) = (0^2) = 0
  3. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
    f(x) = (x/4) - 5
1 Like
  1. I have no fucking idea it was very poorly explained for someone with no foreknowledge I wasn’t too hot at paying attention in school I need to re-learn algebra now as a prerequisite to this as well as the book as well as whatever future reading material may be provided but here goes I will give a it college try.

I think a function is a designation for an equation that is somehow used in code and i don’t know what for yet but I suppose I will move on. I have waited a month or so to attempt to learn what a function is in the terms of algebra on YouTube but it all makes no sense. An equation used to calculate an output? Again I have no idea how it is used within a line of code unless I am learning the absolute base of binary???

and now to try what I think I am being asked…
2(x)= see im confused at this spot here i can solve the equation just give me an x input i have no x input you see how that is an issue here if i am to be asked rto solve an equation that isnt complete how am i to solve the equation. i feel like a error message right now. i will make one up to show i can solve the equation…

2(4)=32??? i hope i understand what ^ means i am under the impression that ^ means 3x3 like squared kind of… i don’t know. but again coming from someone who has no foreknowledge on anything this course has turned out to need former education in algebra or at least not being a retard like me… idk i give up if i get it wrong i dont care anymore this is fucking a joke I’m paying 700 bucks for a youtube channel essentially…i feel let down by myself

x^2 if even
x+10 if odd

i am going to make x=31 i dont know i dont care

2(31)=62+10=72?
7(31)=217+10=227?
0(31)=0+10=10?

now i will make x=24
2(24)=48x48=2,304?
7(24)=168x168=28,224??? god if thats wrong you can make fun of me hahaha
0(24)=0x0=0?

x=2 because i said it does. 2 well fuck i dont know how to write a devision symbol on a keyboard now do i… 2 devided by4 is 0 so that salready fucked great number choice dipshit yay im so smart look at me go on my way to being a wage slave again hahaha hooray alright back to math again 2 devided by 4=0-5=-5? holy fuckin shit i couldnt have picked a better number alright whatever have a good day dont ban me like a big whiney baby i did what you asked but yuour academy has been less than what i expected it to be based off how you chose to advertise yuorselves. i dont give a damn about my typos i suck at typing at the moment and i dont want to take a bunch of courses of how to type.

there you go i gave it my best shot and i dont care i am going to the next youtube video for 700 dollars now… -_-

Homework on Functions - Answers:

  1. Functions make computation with a user-specified number according to a predefined formula.
  2. a) 4
    b) 17
    c) 0
  3. f(x) = x/4 - 5

Maths can be tricky I understand but the aim of this homework is to have a general idea about functions. Let me try to explain;
Function is like a machine that has an input and an output. " f(x) = … " is the classic way of writing a function where x is the function variable or input. if we see the home work questions

f(x) = {

x^2 if x is even

x+10 if x is odd

}

Is a branching function. Simply meaning you decide the path the function will take based on the function input. So in case where x = 7, it means that x is an odd number and therefore you use the second path (x + 10)= 7+10= 17 or in case where x = 2, since x is even number and that mean we use the first path (x^2) = 2^2= 4. This ^ symbol means to the power of, that means if you take (a) as an example f(2) = 2^2 or simplier f(2) = 2x2.
If we had f(x) = (x^4) and took the f(2) as a factor then we would have f(2) = 2^4 which would mean f(2) = 2 x2 x2 x2 = 16.

2 Likes
  1. a function is a relationship between inputs where each input is related to exactly one output.

2.a) f(2) = 2^2
f(2) = 4

b) f(7) = 7+10
f(7) = 17

c) f(0) = 0^2
f(0) = 0

  1. f(x) = (x / 4) - 5
1 Like
  1. A function provides a rule with conditional parameters (if …, then…) for which any given unique input will give a unique output based off the parameters of the rule’s formula.

  2. Calculate the output of the following function

f(x) = {

x^2 if x is even

x+10 if x is odd

}

What will be the output for the following inputs?

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5

f(x) = (x/4) -5

1 Like

So then I got the answer right but wrong at the same time? Were my calculations correct because I didn’t use a calculator.

1- A function its a method to insert inputs and to have expected outputs .
This is achieved via math’s definitions.

2-
a) f(x) = 4
b) f(x) = 17
c) f(x) = 0

3- f(x) = (x/4)-5

1 Like
  1. fuction is input > ACTION Syntax formula = output

a) 2 > 2^2 = 4
b) 7 > 7+10 = 17
c) 0 > 0^2 = 0

  1. x/4 - 5
1 Like
  1. Functions are computations that have a variable input, associated with an equation, and an output that is variable based on the input of the function.

  2. a) 4; b) 17; c) 0

  3. f(x)= (x/4)-5

1 Like

Homework on Functions - Questions

  1. Describe what a function does in your own words
    A function has an input and an output. The output is somehow related to the input.
  2. Calculate the output of the following function
f(x) = {

x^2 if x is even

x+10 if x is odd

}

What will be the output for the following inputs?

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

f(x) = (x/4)-5

1 Like

function is a computation,which gives us certain output based on given/ written input…
a) 4
b)17
c)0

f(x)=(x/4)-5

1 Like