Search
- Filter Results
- Location
- Classification
- Include attachments
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/05%3A_Boolean_and_Loops/05.02%3A__if_statementsNotice that the format is that you start with an if boolean and then the other checks are ifelse and then the final one (if nothing is satified) is just else. Also, the reason we have final else state...Notice that the format is that you start with an if boolean and then the other checks are ifelse and then the final one (if nothing is satified) is just else. Also, the reason we have final else statement is that technically if you are on an axis, then you are not in a quadrant, so that is the reason for the last option.
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/05%3A_Boolean_and_Loops/05.01%3A_Boolean_values_and_if_statementsif we want to test that x is greater than or equal to 0 and y is 5, we can enter: In these cases the tests ==,<=,<,>=,> have precedence over && and ||. Therefore in the example above, x>=0 and y==5 is...if we want to test that x is greater than or equal to 0 and y is 5, we can enter: In these cases the tests ==,<=,<,>=,> have precedence over && and ||. Therefore in the example above, x>=0 and y==5 is evaluated first before the ||. You can think of this resulting in true && true || false and because of precedence the first pair is tested (to be true) then the result true || false results in true.
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/08%3A_Number_Theory/7.05%3A_Binary_Representation_of_Numbers
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/01%3A_Introduction_to_Scientific_Computing/1.03%3A_ComputingIn many cases, there are existing algorithms that are developed to solve some underlying mathematical problem and the main focus is on setting up the problem is the right way. For example, if there is...In many cases, there are existing algorithms that are developed to solve some underlying mathematical problem and the main focus is on setting up the problem is the right way. For example, if there is a differential equation to solve, a package can be loaded to use a particular differential equation solver and then the results need to be analyzed.
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/01%3A_Introduction_to_Scientific_Computing/1.04%3A_Ideas_needed_to_do_Effective_Scientific_ComputingThere are a number of important things that you need to know to solve problems effectively. However, if you write some code that doesn’t take long to develop and returns the correct answer in a few se...There are a number of important things that you need to know to solve problems effectively. However, if you write some code that doesn’t take long to develop and returns the correct answer in a few seconds, it probably doesn’t matter how efficient the algorithm is. It’s not hard to find datasets these days that are 1TB or more in size, however few desktop/laptop machines have more than 16 or 32Gb of RAM, so you can’t load the entire file into memory.
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/07%3A_Functional_Programming/6.03%3A_Optimization
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/06%3A_Arrays/5.01%3A_Introduction_to_Linear_Algebra
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/10%3A_Solving_Quadratics_and_Rootfinding/10.1%3A_Absolute_and_Relative_ErrorsThe definition of absolute, relative and percent errors are presented. Examples are given as well.
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/01%3A_Introduction_to_Scientific_Computing/1.06%3A_Writing_Code_for_Scientific_ComputingHere we will use Julia, which is a very new language that a lot of people in scientific computing are excited about. The Julia community is committed to creating a high-quality piece of software and m...Here we will use Julia, which is a very new language that a lot of people in scientific computing are excited about. The Julia community is committed to creating a high-quality piece of software and many discussion revolve around writing code that will improve the speed or other aspects. Additionally, the structure of the language makes it easy to start with, but as projects get more complex, it can be written in a simple way.
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/04%3A_Intro_to_Functions/04.01%3A_Simple_Examples_of_FunctionsA simple example of a julia function is which just returns the square of the argument, called x. The name of the function is sq and the x inside the parentheses is called the argument of the function....A simple example of a julia function is which just returns the square of the argument, called x. The name of the function is sq and the x inside the parentheses is called the argument of the function. Both the function name and any argument must adhere to the rules of variables from Chapter 3. To use a function or often denoted calling a function is to use the function with known values for the arguments. Find the value of the square function for values, 4, -1, 10, 2.5
- https://math.libretexts.org/Bookshelves/Scientific_Computing_Simulations_and_Modeling/Scientific_Computing_(Staab)/05%3A_Boolean_and_LoopsThe basic computer science structures of if statements, while and for loops are crucial in scientific computing. In this chapter, we cover the basics of these structures in Julia. We will see all of t...The basic computer science structures of if statements, while and for loops are crucial in scientific computing. In this chapter, we cover the basics of these structures in Julia. We will see all of these in more context in later chapters, but here’s the syntax and basics.