6: Conditionals Part 1

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.

    6: Conditionals Part 1

    In this chapter, we’ll use functions and a new feature—conditional statements—to search for Pythagorean triples. A Pythagorean triple is a set of integers, like 3, 4, and 5, that are the lengths of the sides of a right triangle. Mathematically, it’s a set of integers \(a\), \(b\), and \(c\) such that \(a^2 + b^2 = c^2\). This example will also demonstrate the incremental development process we talked about in Chapter 3.


    This page titled 6: Conditionals Part 1 was last modified on Wed, 13 Jul 2022 23:51:56 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.