User contributions for Wikiadmin
From Applied Science
19 April 2022
- 18:2818:28, 19 April 2022 diff hist +7 Functions that return a struct No edit summary
- 18:2718:27, 19 April 2022 diff hist +8 Functions that return a struct No edit summary
- 18:2718:27, 19 April 2022 diff hist +2 Functions that return a struct No edit summary
- 18:2618:26, 19 April 2022 diff hist +1,463 N Functions that return a struct Created page with "* '''Function that returns both roots of a second degree polynomial equation:''' <div class="code"> <span class="codecomment">→Struct to store two values: </span><br /> struct roots { float x1, x2; }; <span class="codecomment">→Function that receives the coefficients a, b and c and returns the roots of the second degree polynomial (it doesn't cover the case of a negative delta): </span><br /> Quadratic (int a, int b, int c) {<div style="margin-left:1.5em;"> struct..."
- 18:0418:04, 19 April 2022 diff hist +39 Introduction to computing No edit summary
- 18:0218:02, 19 April 2022 diff hist +38 Introduction to computing No edit summary
- 17:5617:56, 19 April 2022 diff hist +3,996 N Functions, arrays and matrices Created page with "After learning how to use functions, arrays and matrices, it's time to learn how to use arrays and matrices as function's parameters. A matrix with 10 columns and 10 rows can store up to 100 values, but a function doesn't make 100 calls when we use that matrix in that function. We can have a function with 100 parameters, but if they are all part of a matrix it's much simpler to just use the matrix and then reference to it by a single name. To explain why matrices and ar..."
- 16:0616:06, 19 April 2022 diff hist +2,799 Introduction to functions No edit summary
- 01:4001:40, 19 April 2022 diff hist +34 Introduction to functions No edit summary
- 01:2601:26, 19 April 2022 diff hist +5,952 N Introduction to functions Created page with "It's not really avoidable, functions in a program are analogous to functions in mathematics. During high (secondary) school we learn that <math>f(x) = x^2</math> is a function. Each <math>x</math> is associated with <math>x^2</math>. You should be familiar that a function can only be a function if, for each <math>x</math>, there is only one corresponding <math>y</math>. From the mathematical definition: a function can have different parameters and return the same result..."
18 April 2022
- 22:5722:57, 18 April 2022 diff hist +339 Arrays and matrices No edit summary
- 22:4922:49, 18 April 2022 diff hist +657 Loops and repetition No edit summary
- 22:2522:25, 18 April 2022 diff hist +26 Switch case No edit summary
- 22:2422:24, 18 April 2022 diff hist +1 Conditional operator No edit summary
- 22:2322:23, 18 April 2022 diff hist +191 Conditional operator No edit summary
- 22:2022:20, 18 April 2022 diff hist +1 If else No edit summary
- 22:2022:20, 18 April 2022 diff hist +79 If else No edit summary
- 22:1922:19, 18 April 2022 diff hist −1 If else No edit summary
- 21:5621:56, 18 April 2022 diff hist +33 Tracking algorithms with pencil and paper No edit summary
- 20:4620:46, 18 April 2022 diff hist +1,901 Introduction to C No edit summary
- 19:4319:43, 18 April 2022 diff hist +59 Updates No edit summary
- 19:0519:05, 18 April 2022 diff hist +231 Introduction to C No edit summary
- 19:0019:00, 18 April 2022 diff hist +132 Introduction to C No edit summary
- 18:5918:59, 18 April 2022 diff hist +4 Introduction to C No edit summary
- 18:5818:58, 18 April 2022 diff hist +14 Introduction to C No edit summary
- 18:5018:50, 18 April 2022 diff hist +2 Tracking algorithms with pencil and paper No edit summary
- 18:5018:50, 18 April 2022 diff hist −1 Tracking algorithms with pencil and paper No edit summary
- 18:5018:50, 18 April 2022 diff hist +5 Tracking algorithms with pencil and paper No edit summary
- 18:2418:24, 18 April 2022 diff hist +26 Tracking algorithms with pencil and paper No edit summary
- 14:5314:53, 18 April 2022 diff hist +1 Introduction to computing No edit summary
- 14:5214:52, 18 April 2022 diff hist +4,618 N Arrays and matrices Created page with "''For some reason, in portuguese, the word "vetor" (vector in english) means both vector, the mathematical object, and array, the computing object. In C a matrix is a matrix for the user and the programmer who is not dealing with pointer arithmetic, but when pointer arithmetic is exposed, a matrix turns out be an "array of array".'' In the beginning of the introduction to computing discipline we learn what's the use of arrays and how to use one. The mathematical side of..."
- 14:2114:21, 18 April 2022 diff hist +1,418 Loops and repetition No edit summary
- 13:5213:52, 18 April 2022 diff hist 0 Introduction to computing No edit summary
- 13:5213:52, 18 April 2022 diff hist 0 m Loops and repetition 0kelvin moved page Repetition structures to Loops and repetition without leaving a redirect
- 13:4313:43, 18 April 2022 diff hist 0 m Loops and repetition 0kelvin moved page Iteration structures to Repetition structures without leaving a redirect
- 02:0302:03, 18 April 2022 diff hist +7,906 N Loops and repetition Created page with "''"Computers never get tired and never complain"'' - Cute joke that my teacher used to make during the classes Initially, when we learn how to use loops, we don't worry about the performance of the algorithms. To study the performance of algorithms is left to later, more advanced, disciplines, where search or sorting algorithms are studied. However, we can already think about performance like this: one extra iteration and our algorithm is slower than another algorithm t..."
- 01:0001:00, 18 April 2022 diff hist +1,814 N Switch case Created page with "* '''Conditional structures with SWITCH and CASE:''' <div style="margin-left:1.5em;"> int choice;<br /> switch (choice) {<br /> case 1: printf("You chose 1"); break;<br /> case 2: printf("You chose 2"); break;<br /> case 3: printf("You chose 3"); break;<br /> default: printf("You chose %d (none of the above)", choice);<br /> } </div> '''Differences between SWITCH CASE and ELSE IF.''' The program's behaviour should be the same, what changes is the syntax and..."
- 00:4400:44, 18 April 2022 diff hist +2 Conditional operator No edit summary
- 00:4300:43, 18 April 2022 diff hist +3,718 N Conditional operator Created page with "* '''The same algorithm that tests if a number is odd or even, this time with the '?:' operator (ternary or conditional operator):''' int a;<br /> a % 2 == 0 ? printf("the number %d is even", a) : printf("the number %d is odd", a); The ''''?:'''' operator simplifies the ''''if else'''' statements into a single line of code, an expression formed through one conditional and two commands. There are two differences between using ''''if else'''' or the conditional operator:..."
17 April 2022
- 23:5923:59, 17 April 2022 diff hist +3,430 N If else Created page with "* '''An algorithm that tests if a number is odd or even:''' <div style="margin-left:1.5em;"> int a; if (a % 2 == 0) printf("The number %d is even", a);<br /> else printf("The number %d is odd", a); </div> Pretty simple, just the part related to user input has been omitted. It's pretty intuitive the concept about decision making in examples such as this one. * '''A variation of the algorithm above, this time with the operators AND, OR plus ELSE IF:''' <div style="ma..."
- 23:0323:03, 17 April 2022 diff hist +1,349 N Conditional structures Created page with "One of the first things that you learn is how to make a computer receive a value, process it and return to you something. That's when we need the concept of flow control. You write something that controls the decisions (decisions that you make, not the computer) about what and when to execute something. The simplest flow control structure is IF ... ELSE. '''The basic logic is:''' do this if that is true, else do something else. On one hand you can choose that one case i..."
- 22:4122:41, 17 April 2022 diff hist +3,178 Tracking algorithms with pencil and paper No edit summary
- 13:5713:57, 17 April 2022 diff hist +16 Sine, cosine and tangent No edit summary
16 April 2022
- 19:0919:09, 16 April 2022 diff hist −87 Trigonometric identities No edit summary
- 19:0219:02, 16 April 2022 diff hist +132 Trigonometric identities No edit summary
- 18:5618:56, 16 April 2022 diff hist −39 Trigonometric identities No edit summary
- 18:4218:42, 16 April 2022 diff hist +2,317 Tracking algorithms with pencil and paper No edit summary
- 02:5302:53, 16 April 2022 diff hist +35 Mistakes regarding english →Grammar
- 01:4501:45, 16 April 2022 diff hist 0 Sine, cosine and tangent No edit summary
- 01:4101:41, 16 April 2022 diff hist +323 Sine, cosine and tangent No edit summary