Homework on Functions - Questions

  1. Describe what a function does in your own words

A1. Functions define the equation to calculate a result with variables.

  1. 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)
    I love that game.
  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.

A3. F(x) = (x/4) -5

1 Like

Homework on Functions - Questions

  1. Describe what a function does in your own words
  • Function does a calculation of an indput, to create an output
  1. Calculate the output of the following function
  • a = 4
  • b = 17
  • c = 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
  1. A function is a computation. For every input, the function does a predefined calculation and then provides the output.

  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 is a computation that includes and input and an output. Gives results to operations.

  2. Calculate the output of the following function
    -a) 4
    -b) 17
    -c) 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

a.)4 b.)17 c.)0 d.) f(x)={(x/4)-5}

1 Like
  1. A function is a rule (or set of rules) of a calculation
    • a) f(2) = 4, * b) f(7) = 17, * c) f(0) = 0
  2. 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. A Function gives an Output to an Input.

  2. F(x) = Input 2^2 = 4 Output
    F(x) = Input 7 +10 = 17 Output
    F(x) = Input 0^2 = 0 Output

  3. Function = F(x/4 - 5)

1 Like

A function gives an output to an input (the input is call the syntax)
4
17
0

F (X) = (X/4) -5

1 Like

1.Relates input to an output

2.A. 4
B. 17
C. 0

  1. f(x) = (x/4)-5
1 Like
  1. A function solves an equation by entering each variable/input and solves for an output.
  2. a) 4
    b)17
    c)0
  3. f(x)=(x/4)-5
1 Like

1.- A function is a process that someone/something will be executed in a specific way during a specific period of time and during specific conditions.

2.-
2.1.- 4
2.2.- 17
2.3.- 0

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

1 Like

1. Describe what a function does in your own words
A function is basically a procedure for taking one or more inputs manipulating them in some way (for e.g. adding 1, squaring the inputs, etc.) and then giving one or more outputs.

2. Calculate the output of the following function
(a) f(2) = 4 (since is 2 is even)
(b) f(7) = 17 (since is 7 is odd)
© f(0) = 0 (since 0 is even)

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. Function is a math expression that sets rules to an (or as?) input, that when applied to variables gives a corresponding output.

2.a) 4
b) 17
c) 0 ( null/false could be applied too, maybe? Sheets formula addicted, 0 for normal maths I guess…)

  1. f(x) = (x/4)-5
1 Like

A function is a mathematical equation
f(2)=4
f(7)=17
f(0)=0

(x/4)-5

1 Like

Can anyone help me!

I have never ever did something with programming and now in this eppisode of Ivan, he speaks about : “Functions” and i need to answer questions about caculating an outcome of a function, did i miss anything? I dont know anything about things like "f(x) = "etcetera.

I want to learn programming, thats why iam here. Am i the only one thats missing this? So does anyone now how to get this information?

Grtz,
Arno

  1. Function involves input which through certain calculation gives output according to the formula.

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

  1. f(x) = x/4 -5
1 Like

Hey, rewatch the video carefully. Basically you put a number instead of x and do the basic calculations. For example f (x) = x+3; I decide that 3 represents x, therefore f (3) = 3+3 = 6

  1. A function takes one or more input(s) and performs one or more operations with the input(s) to produce an output.

  2. f(x) = {
    x^2 if x is even
    x+10 if x is odd
    }
    f(2) = 4
    f(7) = 17
    f(0) = 0

  3. The definition for a function takes in x then x/4 - 5
    f(x) = {x/4 - 5}

1 Like

Hey @Arnokoedam :slight_smile: these are math functions, so you don’t need to know programming

  1. A function computes an input based on parameters set and produces an output.
  2. a)4
    b)17
    c)0
    3.f(x)= (x/4)-5
1 Like