@@ -744,7 +744,7 @@ Essayez d'exécuter ceci
744744``` {code-cell} python3
745745def f(x):
746746 """
747- This function squares its argument
747+ Cette fonction élève son argument au carré.
748748 """
749749 return x**2
750750```
@@ -762,7 +762,7 @@ Type: function
762762String Form:<function f at 0x2223320>
763763File: /home/john/temp/temp.py
764764Definition: f(x)
765- Docstring: This function squares its argument
765+ Docstring: Cette fonction élève son argument au carré.
766766```
767767
768768``` {code-cell} ipython
@@ -779,7 +779,7 @@ Definition: f(x)
779779Source:
780780def f(x):
781781 """
782- This function squares its argument
782+ Cette fonction élève son argument au carré.
783783 """
784784 return x**2
785785```
@@ -1044,23 +1044,23 @@ Voici une solution :
10441044``` {code-cell} python3
10451045def linapprox(f, a, b, n, x):
10461046 """
1047- Evaluates the piecewise linear interpolant of f at x on the interval
1048- [a, b], with n evenly spaced grid points .
1047+ Évalue l'interpolant linéaire par morceaux de f en x sur l'intervalle
1048+ [a, b], avec n points de grille régulièrement espacés .
10491049
1050- Parameters
1050+ Paramètres
10511051 ==========
1052- f : function
1053- The function to approximate
1052+ f : fonction
1053+ La fonction à approximer
10541054
1055- x, a, b : scalars (floats or integers )
1056- Evaluation point and endpoints, with a <= x <= b
1055+ x, a, b : scalaires (flottants ou entiers )
1056+ Point d'évaluation et bornes, avec a <= x <= b
10571057
1058- n : integer
1059- Number of grid points
1058+ n : entier
1059+ Nombre de points de grille
10601060
1061- Returns
1061+ Renvoie
10621062 =======
1063- A float. The interpolant evaluated at x
1063+ Un flottant. L' interpolant évalué en x
10641064
10651065 """
10661066 length_of_interval = b - a
0 commit comments