Loading [MathJax]/extensions/mml2jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Set as Cover Page of Book
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Autonumber Section Headings
    • License Version
    • Print CSS
  • Include attachments
Searching in
About 16 results
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/03%3A_for_Loops_Ploting_Points_Sequences_and_Series/3.06%3A_Sequences/3.6.01%3A_Sequences_Additional_Material
    He popularized the Hindu–Arabic numeral system in the Western world.Hindu–Arabic numeral system(opens in new window) [en.Wikipedia.org] It is much better for arithmetic and algebra than Roman numerals...He popularized the Hindu–Arabic numeral system in the Western world.Hindu–Arabic numeral system(opens in new window) [en.Wikipedia.org] It is much better for arithmetic and algebra than Roman numerals. (2 pts) Then update a and b to be the current last 2 terms, in order to be ready for the next iteration. a = b; % Update a for the next iteration. (Use a semicolon so that this line does not display.) b = c; % Update a for the next iteration. (Use a semicolon so that this line does not display.)
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/07%3A_Conditionals_Part_2-_Series_Switch_Logic_Error_Checking_and_While_Loops/7.07%3A_for_loops_with_break_Logic
    for loop with if logic and break
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/07%3A_Conditionals_Part_2-_Series_Switch_Logic_Error_Checking_and_While_Loops/7.05%3A_Working_with_Conditions
    Shows how to use conditions to test for valid variable values. Show some things that could go wrong. Shows how to search for values.
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/04%3A_Vectors/4.09%3A_Recursive_for_Loops
    In recursive for loops, the calculations of each iteration depend on the calculations of the previous iteration.
  • https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/08%3A__Strings/8.03%3A_Searching_Testing_Strings
    This page discusses string manipulation techniques in programming, focusing on using the 'in' operator, count() method, and find()/index() methods for substring operations. It includes examples and ch...This page discusses string manipulation techniques in programming, focusing on using the 'in' operator, count() method, and find()/index() methods for substring operations. It includes examples and checkpoint questions to enhance comprehension, emphasizing practical applications like iterating through strings and counting characters. A suggested exercise involves creating a program to count and remove spaces from a string, reinforcing these concepts through hands-on practice.
  • https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/16%3A_Answer_Key/16.04%3A_Chapter_5
    This page explores essential programming concepts related to loops, including while loops, for loops, nested loops, and control statements like break/continue. It details how these structures function...This page explores essential programming concepts related to loops, including while loops, for loops, nested loops, and control statements like break/continue. It details how these structures function, their termination conditions, and the impact of initialized variables. With examples like Fibonacci sequences and character counting, it illustrates scenarios affecting loop execution and output. The content underscores the importance of grasping loop mechanics in programming.
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/03%3A_for_Loops_Ploting_Points_Sequences_and_Series/3.04%3A_for_Loops/3.4.01%3A_for_Loop_Supplemental_Material
    More for loop instruction, examples, and exercises.
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/03%3A_for_Loops_Ploting_Points_Sequences_and_Series/3.06%3A_Sequences
    In math notation, the elements are denoted with subscripts, so the first element of the series \(A\) is \(A_1\), followed by \(A_2\), and so on. The first line initializes the variable a with the firs...In math notation, the elements are denoted with subscripts, so the first element of the series \(A\) is \(A_1\), followed by \(A_2\), and so on. The first line initializes the variable a with the first element of the sequence, \(A_1\). Each time through the loop, we find the next value of a by dividing the previous value by 2, and assign the result back to a. For this sequence, it’s also possible to compute the \(i\)th element directly, as a function of \(i\), without using the previous element.
  • https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/05%3A_Loops/5.06%3A_Chapter_Summary
    This page discusses loop constructs in programming, including while and for loops, the range() function for integer sequences, and nested loops. It explains control statements like break and continue ...This page discusses loop constructs in programming, including while and for loops, the range() function for integer sequences, and nested loops. It explains control statements like break and continue and the use of an else statement with loops. The chapter provides examples and concludes with a practical exercise to write a program that prints the first N prime numbers.
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/04%3A_Vectors/4.06%3A_Vectors_and_Sequences
    For example, another way to evaluate the Fibonacci sequence from Chapter 2 is to store successive values in a vector. Remember that the definition of the Fibonacci sequence is \(F_1 = 1\), \(F_2 = 1\)...For example, another way to evaluate the Fibonacci sequence from Chapter 2 is to store successive values in a vector. Remember that the definition of the Fibonacci sequence is \(F_1 = 1\), \(F_2 = 1\), and \(F_{i} = F_{i-1} + F_{i-2}\) for \(i > 2\). Listing 4.1 shows how we can compute the elements of this sequence and store them in a vector, using a capital letter for the vector F and lower-case letters for the integers i and n.
  • https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/03%3A_for_Loops_Ploting_Points_Sequences_and_Series/3.10%3A_for_Loop_Incremental_Development_Exercise
    Exercise \(\PageIndex{1}\) for Loop Incremental Development Exercise Write a for loop that does the following. Start with any existing for loop, preferably one that sums a series, such as the one in s...Exercise \(\PageIndex{1}\) for Loop Incremental Development Exercise Write a for loop that does the following. Start with any existing for loop, preferably one that sums a series, such as the one in section 3.8. Adds termk to series_sum, and stores the result back into the series_sum variable. For each value of k, plots termk with the '*' marker. For each value of k, plots series_sum with the 's' marker. After the for loop, display the final values of termk and series_sum.

Support Center

How can we help?