Mathématiques

Question

Bonjour, c’est pour demain. Merci beaucoup
Bonjour, c’est pour demain. Merci beaucoup

1 Réponse

  • Réponse :

    Explications étape par étape

    Bonjour,

    en python, pour x réel et n entier,  x**n veut dire [tex]x^n[/tex]

    1.

    x = 2

    z = x + 1 = 2 + 1 = 3

    y = z**2 = 3**2 = 9

    y = y - z = 9 - 3 = 6

    y = y /x = 6 / 2 = 3

    return 3

    la fonction renvoie 3

    x = -1

    z = x + 1 = -1 + 1 = 0

    y = z**2 = 0**2 = 0

    y = y - z = 0 - 0 = 0

    y = y /x = 0 / -1 = 0

    return 0

    la fonction renvoie 0

    2.

    [tex]f(x) = \dfrac{(x+1)^2 - (x+1)}{x}\\f(x) = \dfrac{(x+1)(x+1-1)}{x}\\f(x) = \dfrac{(x+1)x}{x}\\f(x) = x + 1[/tex]