5.14: Exercise

Matlab and Octave Programming for STEM Applications · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    5.14: Exercise

    Before you go on, you might want to work on the following exercise.

    Exercise 5.1

    Write a function called hypotenuse that takes two parameters, a and b, that represent the lengths of two sides of a right triangle. It should assign to res the length of the third side of the triangle, given by the formula

    \[c = \sqrt{a^2 + b^2}\notag\]


    This page titled 5.14: Exercise was last modified on Wed, 13 Jul 2022 23:48:22 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Carey Smith via source content that was edited to the style and standards of the LibreTexts platform.