<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Learn on ChickenFryBytes Studios</title><link>https://chickenfrybytes.com/learn/</link><description>Recent content in Learn on ChickenFryBytes Studios</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 04 Nov 2026 10:34:47 -0400</lastBuildDate><atom:link href="https://chickenfrybytes.com/learn/index.xml" rel="self" type="application/rss+xml"/><item><title>Polynomial Arithmetic</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/polynomial-arithmetic/</link><pubDate>Wed, 04 Nov 2026 10:28:22 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/polynomial-arithmetic/</guid><description>
We can add, subtract, multiply polynomials. Polynomials can involve many variables raised to whole number powers so for simplicity we will be using polynomials only involving the variable $x$.

## Addition and subtraction
When adding/subtracting polynomials, we simply add/subtract the terms *with the same power of $x$*.

For example, let&amp;#39;s add the polynomials $x^2-3x+4$ and $5x^2+3x+7$. To make visualizing the addition easier, we will be using brackets:
{{&amp;lt;eq&amp;gt;}}
&amp;amp;(x^2-3x+4) + …</description></item><item><title>Polynomials</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/polynomials/</link><pubDate>Wed, 04 Nov 2026 10:10:30 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/polynomials/</guid><description>
An *algebraic term* follows the format:
{{&amp;lt;eq&amp;gt;}}
ax^b
{{&amp;lt;/eq&amp;gt;}}

where $a$ is the *coefficient*, $x$ is the *variable* and $b$ is the *power/exponent*. As an easy rule of thumb, we can say that algebraic terms are separated by $+$, $-$ and $=$ signs. Consider the following expression:
{{&amp;lt;eq&amp;gt;}}
5x+1
{{&amp;lt;/eq&amp;gt;}}

How many terms are there? Because, there is one $+$ sign, acting as a boundary between the terms, we conclude that there are $2$ algebraic terms present. Consider the equation: …</description></item><item><title>Other Axioms of Binary Operations</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/other-axioms-of-binary-operations/</link><pubDate>Sun, 25 Oct 2026 09:52:45 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/other-axioms-of-binary-operations/</guid><description>
There are other axioms that can apply to binary operations.

## Commutativity
A binary operation, $\oplus$ is commutative if the order of the operation between two elements does not matter:
$$a\oplus b=b\oplus a$$

For example, multiplication is commutative:
$$a\times b=b\times a$$

Subtraction is not:
$$a-b\neq b-a$$

## Associativity
A binary operation is associative if:
$$(a\oplus b)\oplus c=a\oplus (b\oplus c)$$

Multiplication and addition are both known to be associative: …</description></item><item><title>Equations Reducible to a Quadratic Form</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/equations-reducible-to-a-quadratic-form/</link><pubDate>Mon, 19 Oct 2026 08:07:57 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/equations-reducible-to-a-quadratic-form/</guid><description>
Any quadratic curve can be written in the form:
{{&amp;lt;eq&amp;gt;}}
ax^2+bx+c
{{&amp;lt;/eq&amp;gt;}}

We know that equations of the form
{{&amp;lt;eq&amp;gt;}}
ax^2+bx+c=0
{{&amp;lt;/eq&amp;gt;}}

can be solved using the quadratic formula:
{{&amp;lt;eq&amp;gt;}}
x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}
{{&amp;lt;/eq&amp;gt;}}

In some cases, by using factorization alongside the *zero factor property*.
&amp;gt;The zero factor property dictates that if a product of two values is zero ($ab$=0) then either of the two values must be zero ($a=0$ or $b=0$).

This is all to …</description></item><item><title>Sketching Quadratic Functions</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/sketching-quadratic-functions/</link><pubDate>Mon, 19 Oct 2026 08:06:15 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/sketching-quadratic-functions/</guid><description>
When sketching the curve of a quadratic function, we need only to represent critical information about the curve:
- The $y$ intercept, $(0,c)$ extracted from $ax^2+bx+c$
- The $x$ intercepts a.k.a. the roots, found by solving the quadratic equation for $x$ when $y=0$
- The turning point, $(-h,k)$ extracted from $a(x+h)^2+k$

We are not **drawing** so we do not need to plot every point.

## The nature of the roots
We use the *discriminant*, $b^2-4ac$ to determine the nature of the …</description></item><item><title>Finding the Range of a Quadratic Function</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/finding-the-range-of-a-quadratic-function/</link><pubDate>Mon, 19 Oct 2026 08:05:09 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/finding-the-range-of-a-quadratic-function/</guid><description>
The domain is defined as *the set of $x$ values* that we use to generate the graph of the quadratic curve. When we choose to work with any $x$ value, the domain is written as:
{{&amp;lt;eq&amp;gt;}}
x\in \mathbb{R}
{{&amp;lt;/eq&amp;gt;}}

This means that $x$ is chosen as *any real number*. It is also possible for us to work with **a limited subset of $x$ values**, for example:
{{&amp;lt;eq&amp;gt;}}
&amp;amp;x&amp;gt;0
-3\le &amp;amp;x\le 3
-4\le &amp;amp;x\le 7
{{&amp;lt;/eq&amp;gt;}}

Each of these are valid domains, that is, they are $x$ values that can be used …</description></item><item><title>Completing the Square</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/completing-the-square/</link><pubDate>Mon, 19 Oct 2026 08:03:54 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/completing-the-square/</guid><description>
A quadratic curve is usually written in the form
{{&amp;lt;eq&amp;gt;}}
y=ax^2+bx+c
{{&amp;lt;/eq&amp;gt;}}

This can be rewritten in the form $a(x+h)^2+k$ in order to extract important information such as:
- The *axis of symmetry* $x=-h$
- The *maximum/minimum value* $y=k$ and
- The *turning point* $(-h,k)$.

## Example
Complete the square for the curve $2x^2+5x+6$.

*Solution* First, we pair off the terms in $x$:
{{&amp;lt;eq&amp;gt;}}
(2x^2+5x)+6
{{&amp;lt;/eq&amp;gt;}}

Next we factorize out the **coefficient of $x^2$**: …</description></item><item><title>Binary Operations</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/binary-operations/</link><pubDate>Sat, 03 Oct 2026 10:39:12 -0700</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/binary-operations/</guid><description>

These are operations involving two operands. Addition, subtraction, multiplication and division are all binary operations. Formally, for a set $S$, the binary operation $\*$ assigns every ordered pair $(a,b)\in S\times S$ to a unique element $a*b\in S$.

## Evaluating the results of a binary operation
We can find the result of a binary operation by just substituting according to what is given by the definition of the operation.

### Example
Given the binary operation defined by …</description></item><item><title>Boolean Algebra</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/boolean-algebra/</link><pubDate>Sat, 03 Oct 2026 10:39:12 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/boolean-algebra/</guid><description>
Since we now understand what it means for two propositions to be logically equivalent, we can pre-emptively determine cases where the truth values of propositions match, thus finding substitutions for propositions. These are commonly referred to as *propositional identities or laws*.

## Double negation
The negation of the negation of a proposition is logically equivalent to the proposition itself:
{{&amp;lt;eq&amp;gt;}}
\neg (\neg p)\equiv p
{{&amp;lt;/eq&amp;gt;}}

{{&amp;lt;table&amp;gt;}}
|$p$|$\neg p$|$\neg (\neg p$)| …</description></item><item><title>Classifying Propositions</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/classifying-propositions/</link><pubDate>Thu, 17 Sep 2026 07:12:56 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/classifying-propositions/</guid><description>
We can classify propositions in terms of their truth values:
- Tautology
- Contradiction
- Contingency

## Tautology
These are propositions whose *truth values are always true*. For example, the compound proposition, $(p\land q)\implies q$ is a tautology:
{{&amp;lt;table&amp;gt;}}
|$p$|$q$|$p\land q$|$(p\land q)\implies q$|
|-|-|-|-|
|$T$|$T$|$T$|$T$|
|$T$|$F$|$F$|$T$|
|$F$|$T$|$F$|$T$|
|$F$|$F$|$F$|$T$|
{{&amp;lt;/table&amp;gt;}}

## Contradiction
These are propositions whose *truth values are always …</description></item><item><title>Factor Theorem</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/factor-theorem/</link><pubDate>Wed, 16 Sep 2026 07:14:46 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/factor-theorem/</guid><description>
The *Factor Theorem* states that a linear divisor $ax+b$ is a factor of a polynomial $P(x)$ if and only if $P(\frac{-b}{a})=0$.

As is the case with numbers, the division of a polynomial by any of its factors always produces a remainder of $0$ (often phrased as **&amp;#34;leaving no remainder&amp;#34;**).

Thus, the Factor Theorem is just a natural consequence of the Remainder Theorem being applied with the fact that division by factors produces no remainder. Once we know how to apply Remainder Theorem, …</description></item><item><title>Remainder Theorem</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/remainder-theorem/</link><pubDate>Tue, 08 Sep 2026 10:48:05 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/remainder-theorem/</guid><description>
The *remainder theorem* states that when a polynomial $P(x)$ is divided by a linear polynomial $ax+b$, the remainder $R$ is given as:

{{&amp;lt;eq&amp;gt;}}
R=P(\frac{-b}{a})
{{&amp;lt;/eq&amp;gt;}}

It should be noted that this value $\frac{-b}{a}$ is not arbitrarily chosen. We get it by *equating the same linear polynomial to $0$* and solving for $x$:

{{&amp;lt;eq&amp;gt;}}
ax+b&amp;amp;=0
ax&amp;amp;=-b
\therefore x&amp;amp;=\frac{-b}{a}
{{&amp;lt;/eq&amp;gt;}}

We then substitute this $x$ value into the polynomial to get the remainder:
{{&amp;lt;eq&amp;gt;}} …</description></item><item><title>Polynomial Arithmetic</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/polynomial-arithmetic/</link><pubDate>Mon, 07 Sep 2026 06:55:56 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/polynomial-arithmetic/</guid><description>
We can add, subtract, multiply polynomials. Polynomials can involve many variables raised to whole number powers so for simplicity we will be using polynomials only involving the variable $x$.

## Addition and subtraction
When adding/subtracting polynomials, we simply add/subtract the terms *with the same power of $x$*.

For example, let&amp;#39;s add the polynomials $x^2-3x+4$ and $5x^2+3x+7$. To make visualizing the addition easier, we will be using brackets:
{{&amp;lt;eq&amp;gt;}}
&amp;amp;(x^2-3x+4) + …</description></item><item><title>Polynomials</title><link>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/polynomials/</link><pubDate>Wed, 02 Sep 2026 07:21:28 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/additional-mathematics/section-1/polynomials/</guid><description>
Recall that algebraic terms are of the form:
{{&amp;lt;eq&amp;gt;}}
ax^b
{{&amp;lt;/eq&amp;gt;}}

where $a$ is the coefficient, $x$ is the base and $b$ is the power/exponent. Recall that algebraic terms are separated by $+$, $-$ and $=$ signs. The following *algebraic expression* thus has $3$ terms:
{{&amp;lt;eq&amp;gt;}}
x^2+5x+6
{{&amp;lt;/eq&amp;gt;}}
The following *algebraic equation* has $4$ terms involved:
{{&amp;lt;eq&amp;gt;}}
x-3=y+2
{{&amp;lt;/eq&amp;gt;}}

## Challenge
How many terms are in the following expressions, equations and inequalities:
- …</description></item><item><title>Functions and Inequalities</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/functions-and-inequalities/</link><pubDate>Fri, 24 Jul 2026 02:04:13 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/functions-and-inequalities/</guid><description/></item><item><title>Composition of Functions</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/composition-of-functions/</link><pubDate>Fri, 24 Jul 2026 02:03:06 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/composition-of-functions/</guid><description>
The composition of a function is essentially the idea of having a function within a function. That is, we chain the functions together such that the output of one function becomes the input of the other.

The notation $f\circ g$ is used to represent of a function $f$ with another function $g$. It is effectively the same as substituting $g$ into $f$:

{{&amp;lt;eq&amp;gt;}}
f\circ g(x)=f[g(x)]
{{&amp;lt;/eq&amp;gt;}}

## Commutativity
Composition is *not commutative* expect for identical functions. Thus: …</description></item><item><title>Inverse of a Function</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/inverse-of-a-function/</link><pubDate>Fri, 24 Jul 2026 02:01:38 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/inverse-of-a-function/</guid><description>
The inverse of a function is the function that produces the opposite effect of the original function. That is, every input and its corresponding output for the original becomes an output and its corresponding input for the inverse function. Given a function $f(x)$, the inverse function is represented as $f^{-1}(x)$.

&amp;gt;Because of the bijective nature of the original function (every output has exactly one input), the inverse function will also be bijective.

## Geometric significance of the …</description></item><item><title>Types of Functions</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/types-of-functions/</link><pubDate>Fri, 24 Jul 2026 01:57:44 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/types-of-functions/</guid><description>
There are some types of functions that concern us at this level:
- Injective (one-to-one) functions
- Surjective (onto) functions
- Bijective functions

## Injective functions
These are functions in which every input produces exactly one *unique* output. This means that no two $x$ values cannot map onto the same $y$ value.

### Horizontal line test
If we can draw a horizontal line passing through any point of the graph of a function and the line intersects with the graph more than …</description></item><item><title>Functions</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/functions/</link><pubDate>Fri, 24 Jul 2026 01:57:43 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/functions/</guid><description>
An ordered pair is simply a pair of items written in a particular order e.g. $(a,b)$ where $a$ is the *$x$ value* and $b$ is the *$y$ value*.

## Relations
A relation is a set of ordered pairs. Relations can be one of four types:
- *One-to-one* where one input has exactly one output e.g. one husband can only have one wife at any time
- *One-to-many* where one input has many outputs e.g. one drummer can play for many bands
- *Many-to-one* where many inputs can produce the same output e.g. …</description></item><item><title>Manipulating Complex Numbers</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/manipulating-complex-numbers/</link><pubDate>Sat, 18 Jul 2026 07:20:28 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/manipulating-complex-numbers/</guid><description>
Now that we understand how to work with the powers of $i$, we can learn the various arithmetic operations involving complex numbers.

## Addition and subtraction
When adding or subtracting two complex numbers, we simply add/subtract their respective real and imaginary components:
{{&amp;lt;eq&amp;gt;}}
z_1&amp;amp;=a+bi
z_2&amp;amp;=c+di
z_1+z_2&amp;amp;=(a+bi)+(c+di)
&amp;amp;=(a+c)+(bi+di)
&amp;amp;=(a+c)+(b+d)i
z_1-z_2&amp;amp;=(a+bi)-(c+di)
&amp;amp;=(a-c)+(bi-di)
&amp;amp;=(a-c)+(b-d)i
{{&amp;lt;/eq&amp;gt;}}

### Examples
- Find the sum of $z_1=3+2i$ and …</description></item><item><title>Complex Numbers</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/complex-numbers/</link><pubDate>Sun, 28 Jun 2026 16:13:45 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/complex-numbers/</guid><description>
Complex numbers are numbers with a real component and an imaginary component. We can represent these using the *rectangular form/notation*:
{{&amp;lt;eq&amp;gt;}}
a+bi
{{&amp;lt;/eq&amp;gt;}}

Where $a$ and $b$ are real numbers. The real component is $a$ and the imaginary component is $bi$.

## A perspective on real numbers and imaginary numbers
Consider the real number $5$. We can think of it as being a complex number where the *imaginary part is $0i$*:
{{&amp;lt;eq&amp;gt;}}
5=5+0i
{{&amp;lt;/eq&amp;gt;}}

Now consider an imaginary …</description></item><item><title>Sets of Numbers</title><link>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/sets-of-numbers/</link><pubDate>Sun, 28 Jun 2026 15:20:10 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/integrated-mathematics/module-1/sets-of-numbers/</guid><description>
The numbers we work with in Mathematics can be represented using set notation. In CSEC General Mathematics, we were limited to the set of *real numbers* ($\mathbb{R}$) which is the set of all positive and negative whole and decimal numbers and zero ($0$). Simply put, the real numbers are every number you have come across so far:
- Positive whole numbers e.g. $2$ and $5$
- Negative whole numbers e.g. $-13$ and $-27$
- Positive decimal numbers e.g. $2.4$ and $0.5$
- Negative decimal numbers …</description></item><item><title>Approximations</title><link>https://chickenfrybytes.com/learn/secondary-school/form-2/mathematics/approximations/</link><pubDate>Thu, 14 May 2026 10:45:11 -0400</pubDate><guid>https://chickenfrybytes.com/learn/secondary-school/form-2/mathematics/approximations/</guid><description>
There are two ways to represent our answers in math, the *exact value* and *approximate value*. The exact value (**the true value**) preserves the integrity of the number, meaning that we do not round any digits e.g. Pi ($\pi$). By rounding, we are throwing away information (the digits lost by rounding).

The approximate value, on the other hand, is close to the true value but only to a certain extent (such as a specific number of decimal places, etc.) e.g. $3.14$ is Pi written to $2$ …</description></item><item><title>Binary Operations</title><link>https://chickenfrybytes.com/learn/secondary-school/form-2/mathematics/binary-operations/</link><pubDate>Thu, 14 May 2026 09:47:05 -0400</pubDate><guid>https://chickenfrybytes.com/learn/secondary-school/form-2/mathematics/binary-operations/</guid><description>
A binary operation is an operation which combines two numbers to produce a third number. Our basic arithmetic operations are binary operations:
- Addition ($+$)
- Subtraction ($-$)
- Multiplication ($\times$)
- Division ($\div$)

Addition is a binary operation because it accepts two numbers and produces a third number (their sum) e.g. $2+1=3$.

## Custom binary operations
We can define our own binary operations using fancy symbols like oplus ($\oplus$), otimes ($\otimes$), etc. For …</description></item><item><title>Potential Dividers</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-10/potential-dividers/</link><pubDate>Sat, 28 Feb 2026 15:50:31 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-10/potential-dividers/</guid><description>
A potential divider is used to divide an input voltage into a smaller output voltage. Consider a circuit where the input voltage, $V$ is applied across two resistors, $R_1$ and $R_2$ in series:

{{&amp;lt;todo &amp;#34;Diagram showing simple potential divider&amp;#34;&amp;gt;}}

The current flowing from the battery depends on the input voltage and the total resistance:
{{&amp;lt;eq&amp;gt;}}
I&amp;amp;=\frac{V}{R_T}
{{&amp;lt;/eq&amp;gt;}}

Because the resistors are in series, the same current flows through $R_1$, with a potential difference of …</description></item><item><title>Volume of Revolution</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/volume-of-revolution/</link><pubDate>Thu, 19 Feb 2026 06:22:45 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/volume-of-revolution/</guid><description>
Recall that the area bounded by a curve, the x-axis, and the two lines $x=a$ and $x=b$, is given by:

{{&amp;lt;eq&amp;gt;}}
A=\int_a^bf(x)dx
{{&amp;lt;/eq&amp;gt;}}

If we were to take this area and rotate $360\degree$, the volume of the solid shape generated by this rotation would be given by:

{{&amp;lt;eq&amp;gt;}}
V=\pi\int_a^b[f(x)]^2dx
{{&amp;lt;/eq&amp;gt;}}

Note the two changes:
- We multiply by pi (*$\pi$*)
- We integrate *the square of the function* instead of just the function

## Example
FInd the volume of revolution …</description></item><item><title>Definite Integrals and Area Bounded by a Curve</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/definite-integrals-and-area-bounded-by-a-curve/</link><pubDate>Thu, 19 Feb 2026 06:22:33 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/definite-integrals-and-area-bounded-by-a-curve/</guid><description>
Consider the area that is bounded vertically by a curve $y=f(x)$ and the x-axis, and horizontally by the lines $x=a$ and $x=b$:
{{&amp;lt;todo &amp;#34;Diagram showing area bounded&amp;#34;&amp;gt;}}

This enclosed area is given by the *definite integral*:
{{&amp;lt;eq&amp;gt;}}
A=\int_a^bf(x)dx
{{&amp;lt;/eq&amp;gt;}}

The definite integral is the result of evaluation the integral considering two boundaries, in this case the lines $x=a$ and $x=b$.

## Area trapped between two curves
In order to find the area, we need to determine the …</description></item><item><title>Integration</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/integration/</link><pubDate>Thu, 19 Feb 2026 06:21:45 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/integration/</guid><description>
Whereas differentiation is used to find the rate of change of one variable with respect to another, integration does the opposite. When we integrate, we find the area under the graph. That is, we find the product of the function on the y-axis and infinitely thin sections of the x-axis variable.

## The anti-derivative
This is the opposite of the derivative of a function. It is not the same as the integral as it does not include the *constant of integration*. The constant of integration …</description></item><item><title>Kirchhoff's Laws</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-10/kirchhoff-laws/</link><pubDate>Sat, 14 Feb 2026 08:35:21 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-10/kirchhoff-laws/</guid><description>
These laws govern the general behaviour of current ($I$) and voltage ($V$) in circuits.

## Kirchhoff&amp;#39;s Current Law
The algebraic sum of currents entering and leaving a node is zero:
{{&amp;lt;todo &amp;#34;KCL Diagram&amp;#34;&amp;gt;}}
{{&amp;lt;eq&amp;gt;}}
I_T&amp;amp;=I_1+I_2+I_3
{{&amp;lt;/eq&amp;gt;}}

## Kirchhoff&amp;#39;s Voltage Law
The algebraic sum of e.m.f.&amp;#39;s and p.d.&amp;#39;s in a loop is zero:
{{&amp;lt;todo &amp;#34;KVL Diagram&amp;#34;&amp;gt;}}
{{&amp;lt;eq&amp;gt;}}
E-(V_1+V_2+V_3)&amp;amp;=0
{{&amp;lt;/eq&amp;gt;}}


Note that there does not have to be any source of power for a loop to be analyzed in …</description></item><item><title>Internal Resistance</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-10/internal-resistance/</link><pubDate>Sat, 14 Feb 2026 08:34:54 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-10/internal-resistance/</guid><description/></item><item><title>Rates of Change</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/rates-of-change/</link><pubDate>Mon, 09 Feb 2026 06:31:04 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/rates-of-change/</guid><description>
We must acknowledge that so far we have always been working with the rate of change. By differentiating $y$ with respect to $x$, we get the derivative of $y$ with respect to $x$:
{{&amp;lt;eq&amp;gt;}}
\frac{d}{dx}(y)&amp;amp;=\frac{dy}{dx}
{{&amp;lt;/eq&amp;gt;}}

This is also referred to as *the rate of change of $y$ with respect to $x$*. Read the following rates of change:
- $\frac{du}{d\theta}$
- $\frac{dv}{dx}$
- $\frac{d\theta}{dx}$
- $\frac{du}{dt}$
- $\frac{ds}{dt}$

&amp;gt;When the rate of change of a variable is …</description></item><item><title>Resistance</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-9/resistance/</link><pubDate>Sat, 07 Feb 2026 09:02:16 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-9/resistance/</guid><description>
Electric resistance, $R$ is the tendency of a material to resist the flow of an electric current, $I$. The SI unit of resistance is the Ohm ($\Omega$).

## Ohm&amp;#39;s Law
The current flowing through a conductor is directly proportional to the voltage across its end, given that temperature is constant:
{{&amp;lt;eq&amp;gt;}}
V&amp;amp;=IR
{{&amp;lt;/eq&amp;gt;}}

Electric resistance is thus the ratio of the voltage applied to a conductor to the electric current that results from this voltage:

## Resistance in series and …</description></item><item><title>Electric Current</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-9/electric-current/</link><pubDate>Sat, 07 Feb 2026 08:29:32 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-9/electric-current/</guid><description>
Electricity is the presence or flow of charged particles. There are two ($2$) types of electricity:
- Static electricity - this is associated with an excess or lack of charged particles e.g. too many electrons or missing electrons
- Current electricity - this is associated with the movement of charged particles

## Current
This is the charge transferred per unit time:
{{&amp;lt;eq&amp;gt;}}
I&amp;amp;=\frac{Q}{t}
{{&amp;lt;/eq&amp;gt;}}

Thus charge is the product of current and time:
{{&amp;lt;eq&amp;gt;}}
Q&amp;amp;=It
{{&amp;lt;/eq&amp;gt;}}

A …</description></item><item><title>Waves</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-7/waves/</link><pubDate>Sat, 31 Jan 2026 09:02:42 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-7/waves/</guid><description>
A wave is a *disturbance* that **transfers energy** from one point to another, without the net displacement of matter. There are three ($3$) types of waves:
- Mechanical waves
- Electromagnetic waves
- Matter waves

&amp;gt;Matter waves are associated with wave-particle duality. We know that light can sometimes behave as a wave and other times as a particle. By that logic, it is thus possible that other particles of matter can behave as waves.

## Mechanical waves
These are waves that require …</description></item><item><title>Young's Modulus</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-6/young-modulus/</link><pubDate>Sat, 24 Jan 2026 10:13:44 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-6/young-modulus/</guid><description>
It is important that we have means for determining the strength of a material. *Young&amp;#39;s Modulus* is the ratio of the tensile stress ($\sigma$) to the tensile strain ($\epsilon$):
{{&amp;lt;eq&amp;gt;}}
E&amp;amp;=\frac{\sigma}{\epsilon}
{{&amp;lt;/eq&amp;gt;}}

The stress is the force per unit area and the strain is the percentage change in length:
{{&amp;lt;eq&amp;gt;}}
&amp;amp;=\frac{F/A}{\Delta l/l}
{{&amp;lt;/eq&amp;gt;}}

The SI unit for stress is the $Pa$:
{{&amp;lt;eq&amp;gt;}}
\sigma&amp;amp;=\frac{F}{A}
&amp;amp;\rightarrow\frac{N}{m^2}
&amp;amp;=Pa
{{&amp;lt;/eq&amp;gt;}}

Strain, …</description></item><item><title>Deformation</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-6/deformation/</link><pubDate>Sat, 24 Jan 2026 08:40:13 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-6/deformation/</guid><description>
We know that forces can cause changes in motion, size and shape. When we consider the shape/size changing aspect of forces, we are talking about deformation. Deformation is a change in the size or shape of a body or system e.g. stretching a rubber band, hitting a nail into a wooden board or having something hit your car and dent it.

## Types of deformation
There are two ($2$) types of deformation:
- **Elastic deformation** - this is deformation whereby the object returns fully to its …</description></item><item><title>Discrete Random Variables</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/discrete-random-variables/</link><pubDate>Fri, 23 Jan 2026 06:50:13 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/discrete-random-variables/</guid><description>
These are variables that can take on a countable set of discrete values. *The sum of the probabilities* of each possible outcome is *always $1$*.

## Expected value
The expected value (the mean) of a discrete random variable is given by the formula
{{&amp;lt;eq&amp;gt;}}
E(X)&amp;amp;=\sum{xP(X=x)}
{{&amp;lt;/eq&amp;gt;}}

where $X$ is the variable e.g. the face obtained from rolling a fair die and $x$ is a particular outcome e.g. $1$, $2$, etc.

## Variance
The variance of the discrete random variable is
{{&amp;lt;eq&amp;gt;}} …</description></item><item><title>Creating a Main Menu</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/internal-assessment/creating-a-main-menu/</link><pubDate>Thu, 22 Jan 2026 12:00:11 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/internal-assessment/creating-a-main-menu/</guid><description>
The *main()* function is the entry point to our program. As such, we try our best not to clutter this function with much code. Instead, it is better to place the main menu here and **call other functions** from this main menu. Here is a possible implementation for the main menu:

{{&amp;lt;code &amp;#34;menu.c&amp;#34;&amp;gt;}}

## Clearing standard input
The standard input (*stdin*) buffer will contain extra characters not handled by **scanf**. Leaving these characters in buffer will cause future calls to **scanf** …</description></item><item><title>Stationary Points</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/stationary-points/</link><pubDate>Thu, 22 Jan 2026 06:57:41 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/stationary-points/</guid><description>
A stationary point is a point on a curve where the gradient is zero ($0$). This means that the derivative will be $0$:
{{&amp;lt;eq&amp;gt;}}
\frac{dy}{dx}=0
{{&amp;lt;/eq&amp;gt;}}

To find the stationary points, we simply find $dy/dx$ and equate it to $0$. We then solve this equation to get the $x$ value(s) that satisfy it. The $y$ values can be found by substituting these $x$ values into the original equation of the curve.

## Types of stationary points
There are three ($3$) types of stationary points:
1. …</description></item><item><title>Searching Algorithms</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/searching-algorithms/</link><pubDate>Tue, 20 Jan 2026 13:18:03 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/searching-algorithms/</guid><description>
The purpose of sorting is to reorder data whereas the purpose of search is to find the desired data. Sorting thus serves to prepare a dataset for more efficient searching. Two basic search algorithms are:
- Linear or sequential search
- Binary

## Linear/sequential search
This algorithm iterates through the entire list of items one by one until the data is found. It is a very naive searching algorithm as finding an element could require searching the entire list.
{{&amp;lt;code …</description></item><item><title>Sorting Algorithms</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/sorting-algorithms/</link><pubDate>Tue, 20 Jan 2026 13:17:55 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/sorting-algorithms/</guid><description>
Sorting is used to reorder data in a structure. For example, we may want to reorder the books on a desk by order of the dates they were published, in chronological order. Some common sorting algorithms are:
- Bubble sort
- Selection sort
- Insertion sort
- Merge sort
- Quick sort

&amp;gt;Sorting is not limited to alphabetical order or chronological order. Some languages designers provide an interface by which we can specify the condition to be used to determine if two elements should be …</description></item><item><title>Sorting and Searching</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/sorting-and-searching/</link><pubDate>Tue, 20 Jan 2026 13:17:40 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/sorting-and-searching/</guid><description/></item><item><title>Queues</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/queues/</link><pubDate>Tue, 20 Jan 2026 13:17:00 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/queues/</guid><description/></item><item><title>Stacks</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/stacks/</link><pubDate>Tue, 20 Jan 2026 13:16:53 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/stacks/</guid><description/></item><item><title>Tangents and Normals</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/tangents-and-normals/</link><pubDate>Tue, 20 Jan 2026 06:24:11 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/tangents-and-normals/</guid><description>
Recall that the gradient function tells us the gradient of a curve at any point, given the $x$ value (or any other required inputs).
&amp;gt;The gradient at a point on the curve is the same as the gradient of the tangent to the curve at that point. Therefore the gradient function is used to find the gradient of the tangent at any given point on a curve.

## Example
Find the equation of the tangent to the curve $y=x^2+5x+6$ at the point $(1,12)$.

**Solution** The gradient of the tangent is …</description></item><item><title>Higher Order Derivatives</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/higher-order-derivatives/</link><pubDate>Mon, 19 Jan 2026 06:33:45 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/higher-order-derivatives/</guid><description>
We can differentiate a function many times. The *$nth$* derivative is represented by the notation:
{{&amp;lt;eq&amp;gt;}}
\frac{d^ny}{dx^n} \text{ OR }f^{(n)}(x)
{{&amp;lt;/eq&amp;gt;}}

For example, the second derivative is written as
{{&amp;lt;eq&amp;gt;}}
\frac{d^2y}{dx^2}
{{&amp;lt;/eq&amp;gt;}}

**Example** Find the third derivative of the function $y=\cos{3x}$

**Solution** The first derivative is
{{&amp;lt;eq&amp;gt;}}
\frac{dy}{dx}&amp;amp;=-\sin{3x}\times 3
&amp;amp;=-3\sin{3x}
{{&amp;lt;/eq&amp;gt;}}

The second derivative is
{{&amp;lt;eq&amp;gt;}} …</description></item><item><title>Rules for Differentiation</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/rules-for-differentiation/</link><pubDate>Tue, 13 Jan 2026 06:03:32 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/rules-for-differentiation/</guid><description>
We now know how to differentiate basic algebraic and trigonometric functions but how we differentiate the compositions, products and quotients of these functions?

## Chain rule
Given the composition of two functions,
{{&amp;lt;eq&amp;gt;}}
y=f(u)\text{ where } u=g(x)
{{&amp;lt;/eq&amp;gt;}}

The derivative will be
{{&amp;lt;eq&amp;gt;}}
\frac{dy}{dx}=\frac{dy}{du}\times \frac{du}{dx}
{{&amp;lt;/eq&amp;gt;}}

### Example 1
For example, consider the function
{{&amp;lt;eq&amp;gt;}}
y=\sin(x+1)
{{&amp;lt;/eq&amp;gt;}}
This function can be achieved by …</description></item><item><title>Differentiation</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/differentiation/</link><pubDate>Mon, 12 Jan 2026 06:11:08 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/differentiation/</guid><description>
Consider the formula for gradient:
{{&amp;lt;eq&amp;gt;}}
m&amp;amp;=\frac{y_2-y_1}{x_2-x_1}
&amp;amp;=\frac{\Delta y}{\Delta x}
{{&amp;lt;/eq&amp;gt;}}

This formula caters for an *average rate of change* from one point, $(x_1,y_1)$ to another, $(x_2,y_2)$. For differentiation, we find the **instantaneous rate of change**:
{{&amp;lt;eq&amp;gt;}}
m=\frac{dy}{dx}
{{&amp;lt;/eq&amp;gt;}}

This is referred to as the *gradient function* because it produces the gradient of the curve when provided with the $x$ value.

&amp;gt;$\Delta$ means an **average change** …</description></item><item><title>Power</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-5/power/</link><pubDate>Sat, 10 Jan 2026 12:39:47 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-5/power/</guid><description>
Power is the *rate of transfer/conversion of energy*. Due to energy being the ability to do work, power can also be defined as the **work done per unit time**:
{{&amp;lt;eq&amp;gt;}}
P=\frac{E}{t}
{{&amp;lt;/eq&amp;gt;}}

The SI unit is the Watt ($W$), equivalent to a **Joule per second**:
{{&amp;lt;eq&amp;gt;}}
P&amp;amp;=\frac{E}{t}
&amp;amp;\rightarrow \frac{J}{s}
&amp;amp;=W
{{&amp;lt;/eq&amp;gt;}}

## The kilowatt-hour
Because energy is the product of power and time, the kilowatt-hour is a unit of energy:
{{&amp;lt;eq&amp;gt;}}
E&amp;amp;=Pt
&amp;amp;=1 kW\times h
1kWh&amp;amp;=1000 …</description></item><item><title>Energy Conservation</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-5/energy-conservation/</link><pubDate>Sat, 10 Jan 2026 08:50:52 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-5/energy-conservation/</guid><description>
Energy is the ability to do work. The SI unit of energy is the Joule ($J$).

## Work
Work is given by the dot product of the force and the displacement:
{{&amp;lt;eq&amp;gt;}}
Work=\vec{F}\cdot \vec{s}
{{&amp;lt;/eq&amp;gt;}}

&amp;gt;Recall that the dot product of two vectors is the sum of the products of the corresponding components. Given the vectors $\vec{a}$ and $\vec{b}$:
{{&amp;lt;eq&amp;gt;}}
\vec{a}&amp;amp;=\begin{pmatrix}x_1
y_1
\end{pmatrix}
\vec{b}&amp;amp;=\begin{pmatrix}x_2
y_2
\end{pmatrix}
{{&amp;lt;/eq&amp;gt;}}
The dot product is …</description></item><item><title>Channels</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/channels/</link><pubDate>Fri, 19 Dec 2025 20:29:13 -0500</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/channels/</guid><description>
We can use channels in order to send information among concurrent goroutines. They can be thought of as pipes in which we pass data around. A new channel is created using the syntax:
```go
make(chan &amp;lt;dataType&amp;gt;)
// e.g. a channel for passing strings
myChannel := make(chan string)
```

We can then send values through the channel using the syntax:
```go
myChannel &amp;lt;- &amp;#34;this is my message to you&amp;#34;
```

## Receiving values from a channel
In order to get a value in a channel, we use the …</description></item><item><title>Permutations</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/permutations/</link><pubDate>Thu, 27 Nov 2025 06:16:50 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/permutations/</guid><description>
These are also called *arrangements* because the **order** in which the elements are selected **matters**.


## Permute $r$ out of $n$ objects
Given $n$ objects, the number of arrangements of $r$ objects is:
{{&amp;lt;eq&amp;gt;}}
{}^n P_r =\frac{n!}{(n-r)!}
{{&amp;lt;/eq&amp;gt;}}

**Example:** Your mom bought $6$ toys for you but you only have $3$ boxes. How many ways can you arrange the toys into the $3$ boxes?

**Solution:**
{{&amp;lt;eq&amp;gt;}}
{}^6 P_3&amp;amp;=\frac{6!}{(6-3)!}
&amp;amp;=\frac{6!}{3!}
&amp;amp;=120
{{&amp;lt;/eq&amp;gt;}} …</description></item><item><title>Geometric Progressions</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/geometric-progressions/</link><pubDate>Tue, 25 Nov 2025 07:16:00 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/geometric-progressions/</guid><description>
A geometric progression is a series in which each successive term is generated by *multiplying* the term before it *by a fixed value* called the **common ratio**. Given that the first term is $a$ and the common ratio is $r$, the $nth$ term of a GP is:
{{&amp;lt;eq&amp;gt;}}
u_n=ar^{n-1}
{{&amp;lt;/eq&amp;gt;}}

The sum up to the $nth$ term is:
{{&amp;lt;eq&amp;gt;}}
S_n&amp;amp;=\frac{a(r^{n}-1)}{r-1},r&amp;gt;1
{{&amp;lt;/eq&amp;gt;}}

For fractional and negative values of $r$, we use a variation of this formula:
{{&amp;lt;eq&amp;gt;}} …</description></item><item><title>Arithmetic Progressions</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/arithmetic-progressions/</link><pubDate>Tue, 25 Nov 2025 06:22:37 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/arithmetic-progressions/</guid><description>
An arithmetic progression is a series in which each successive term is generated by *adding* the term before it *to a fixed value* called the **common difference**. Given the first term of an arithmetic progression $a$, and a common difference (the difference between each consecutive term) $d$, the $nth$ term is:

{{&amp;lt;eq&amp;gt;}}
u_n=a+(n-1)d
{{&amp;lt;/eq&amp;gt;}}

The sum up to the $nth$ term is:
{{&amp;lt;eq&amp;gt;}}
S_n=\frac{n}{2}[2a+(n-1)d]
{{&amp;lt;/eq&amp;gt;}}

## Deriving the formula for the sum of the first $n$ terms …</description></item><item><title>Pressure</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-4/pressure/</link><pubDate>Sat, 22 Nov 2025 10:40:04 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-4/pressure/</guid><description>
Pressure ($P$) is the force ($F$) per unit area ($A$):
{{&amp;lt;eq&amp;gt;}}
P=\frac{F}{A}
{{&amp;lt;/eq&amp;gt;}}

The SI unit is:
{{&amp;lt;eq&amp;gt;}}
P&amp;amp;=\frac{F}{A}
&amp;amp;\rightarrow \frac{N}{m^2}
&amp;amp;=Nm^{-2}
{{&amp;lt;/eq&amp;gt;}}

**Example:** Find the pressure exerted by a $5kg$ block placed on a surface. The area of the block in contact with the surface is $2m^2$.

**Solution:**
{{&amp;lt;eq&amp;gt;}}
P&amp;amp;=\frac{F}{A}
&amp;amp;=\frac{5kg\times 9.81 ms^{-2}}{2m^2}
&amp;amp;=24.5Nm^{-2}
{{&amp;lt;/eq&amp;gt;}}

## Fluid pressure
Given a fluid of density $\rho$ and an …</description></item><item><title>Density</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-4/density/</link><pubDate>Sat, 22 Nov 2025 10:19:23 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-4/density/</guid><description>
Density ($\rho$) is the mass per unit volume:

{{&amp;lt;eq&amp;gt;}}
\rho&amp;amp;=\frac{mass}{volume}
&amp;amp;=\frac{m}{V}
{{&amp;lt;/eq&amp;gt;}}

Thus the SI unit is:

{{&amp;lt;eq&amp;gt;}}
\rho&amp;amp;=\frac{m}{V}
&amp;amp;\rightarrow \frac{kg}{m^3}
&amp;amp;=kgm^{-3}
{{&amp;lt;/eq&amp;gt;}}

**Example:** Find the density of a material whose volume is $4m^3$ and mass is $7kg$.

**Solution:**
{{&amp;lt;eq&amp;gt;}}
\rho &amp;amp;= \frac{m}{V}
&amp;amp;=\frac{7kg}{4m^3}
&amp;amp;=1.75kgm^{-3}
{{&amp;lt;/eq&amp;gt;}}

## Relative density
This is the ratio of the density of a substance relative to the density …</description></item><item><title>Moments</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-4/moments/</link><pubDate>Sat, 22 Nov 2025 08:27:53 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-4/moments/</guid><description>
The moment is the turning effect of a force. It is the product of the force ($F$) and the perpendicular distance between the pivot and the line of action of the force ($d$):

{{&amp;lt;eq&amp;gt;}}
\text{moment} =F\times d
{{&amp;lt;/eq&amp;gt;}}

{{&amp;lt;optimg src=&amp;#34;moment.png&amp;#34; credits=&amp;#34;Physics - I Can&amp;#34; link=&amp;#34;https://physicsican.blogspot.com/2019/07/moment-of-force.html&amp;#34;&amp;gt;}}

&amp;gt;The SI unit of moments is thus:
{{&amp;lt;eq&amp;gt;}}
\text{moment} &amp;amp;=F\times d
&amp;amp;\rightarrow N\times m
&amp;amp;=Nm
{{&amp;lt;/eq&amp;gt;}}

{{&amp;lt;mcq&amp;gt;}}
The moment of a …</description></item><item><title>Business and Funding</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/business-and-funding/</link><pubDate>Mon, 17 Nov 2025 19:27:54 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/business-and-funding/</guid><description>
It is a fatal flaw of many technical persons within the animation and game industries to focus solely on their craft instead of nurturing the business aspects of the company. This is the advantage of working for a larger company where there is **dedicated staff** to **handle sales and marketing**.

The benefits of a smaller team, be in the production of an indie game or an animation passion will always be *high velocity*. Information exchange and decision-making are often slow in larger …</description></item><item><title>Drag Force</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-3/drag-force/</link><pubDate>Sat, 15 Nov 2025 09:17:21 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-3/drag-force/</guid><description>
The drag force ($F_d$) on an object in a fluid is given by:
{{&amp;lt;eq&amp;gt;}}
F_d=\frac12 \rho v^2 C_d A
{{&amp;lt;/eq&amp;gt;}}

Where $\rho$ is the density of the fluid, $v^2$ is the flow velocity relative to the object, $A$ is the reference area and $C_d$ is the drag coefficient.

A simpler format for this is:
{{&amp;lt;eq&amp;gt;}}
F_d=kv^2
{{&amp;lt;/eq&amp;gt;}}

Where $k$ is a placeholder for the other factors.
&amp;gt;Notice that the drag force is directly proportional to the square of the velocity of the object ($F_d\propto …</description></item><item><title>Energy and Work</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/energy-and-work/</link><pubDate>Sat, 15 Nov 2025 07:48:13 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/energy-and-work/</guid><description>
Energy is the ability to do work. The SI unit for energy is the Joule ($J$).

## Types of energy
There are many types of energy:
- Light (electromagnetic) energy
- Sound energy
- Thermal (heat) energy
- Mechanical energy (potential and kinetic energy)

### Kinetic energy
This is the energy a body possesses by virtue of its motion. The kinetic energy of a body with mass $m$ and velocity $v$ is given as:
{{&amp;lt;eq&amp;gt;}}
KE=\frac12 mv^2
{{&amp;lt;/eq&amp;gt;}}

A change in kinetic energy for a body …</description></item><item><title>Connected Particles</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/connected-particles/</link><pubDate>Sat, 15 Nov 2025 07:47:52 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/connected-particles/</guid><description/></item><item><title>Points of Intersection</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/points-of-intersection/</link><pubDate>Fri, 14 Nov 2025 09:38:35 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/points-of-intersection/</guid><description>
In order to find the points of intersection of two curves/lines, it is necessary to solve the equations of the curves/lines simultaneously.

## The discriminant
Whenever we use the equations of two curves/lines to generate a quadratic equation, the discriminant of this quadratic equation tells us the nature of the intersection:
- $b^2-4ac=0$ means that the two graphs intersect at exactly one point
- $b^2-4ac&amp;gt;0$ means that the two graphs intersect at more than one points
- $b^2-4ac&amp;lt;0$ …</description></item><item><title>Normal Distribution</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/normal-distribution/</link><pubDate>Thu, 13 Nov 2025 06:12:20 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/normal-distribution/</guid><description>
A normal distribution is a distribution whereby the mean, mode and median are all the same. We represent a normal distribution with mean $\mu$ and standard deviation $\sigma$ as:
{{&amp;lt;eq&amp;gt;}}
X\sim N(\mu,\sigma^2)
{{&amp;lt;/eq&amp;gt;}}

The graph is *symmetric about the mean* and the total area under the graph is $1$.

For example, if the masses of cows is normally distributed, with a mean of $55kg$, and a standard deviation of $3kg$, the distribution of the masses is represented as:
{{&amp;lt;eq&amp;gt;}}
X\sim …</description></item><item><title>Friction</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-3/friction/</link><pubDate>Sat, 08 Nov 2025 09:58:51 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-3/friction/</guid><description>
Friction is a resistive force. It opposes the motion of objects. There are two kinds of friction:
- Static friction - the friction that resists any force serving to move any object from rest
- Kinetic friction - the friction that causes any object already in motion to slow down

The maximum force of friction is dependent on the force pressing the two surfaces together and a coefficient of friction, unique to the pair of surfaces:

{{&amp;lt;eq&amp;gt;}} F_{max}=\mu R
{{&amp;lt;/eq&amp;gt;}}

where $\mu$ is the …</description></item><item><title>Colour Theory</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/colour-theory/</link><pubDate>Tue, 04 Nov 2025 18:01:33 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/colour-theory/</guid><description/></item><item><title>Visual Design</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/visual-design/</link><pubDate>Tue, 04 Nov 2025 18:00:50 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/visual-design/</guid><description>
## Principles for creating a visual design</description></item><item><title>Designing Interactions for Games and Animations</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/designing-interactions-for-games-and-animations/</link><pubDate>Tue, 04 Nov 2025 18:00:27 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/designing-interactions-for-games-and-animations/</guid><description/></item><item><title>Interactive Design</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/interactive-design/</link><pubDate>Tue, 04 Nov 2025 17:57:41 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/interactive-design/</guid><description>
Interactive design (**IxD**) is a field of study that focuses on creating products and services that *facilitate meaningful communication* between people and technology. It is very **user-focused** (a.k.a. user-centric). It addresses both the physical and emotional aspects of the dialogue between person and machine.

&amp;gt;Interactive design might be a *misnomer* as it deals with the design of interactions between user and product/service. The term could be mistakenly interpreted as a design …</description></item><item><title>Game Genres</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/game-genres/</link><pubDate>Tue, 04 Nov 2025 17:55:41 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-2/module-1/game-genres/</guid><description>
There are many genres of games. The primary way in which we may classify games is by the game mechanics they involve and the various genres corresponding to the dominant mechanics observed in each game.

## Arcade

## Action

## Adventure

## Puzzle

## Role-playing game (RPG)

## Strategy

## Simulation

## Board game

## Sports
</description></item><item><title>Relative Density Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/relative-density-lab/</link><pubDate>Tue, 04 Nov 2025 09:26:32 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/relative-density-lab/</guid><description>
## Theory
Density($\rho$) is the mass ($m$) per unit volume ($V$) of a substance:

{{&amp;lt;eq&amp;gt;}}
\rho=\frac{m}{V}
{{&amp;lt;/eq&amp;gt;}}

The relative density is the ratio of the density of the substance to the density of a standard (usually water):

{{&amp;lt;eq&amp;gt;}}
\rho_{rel}=\frac{\rho_{substance}}{\rho_{water}}
{{&amp;lt;/eq&amp;gt;}}

The relative density of an irregular solid can thus be determined by finding the density of the solid and dividing it by the density of water. The relative density can also be found …</description></item><item><title>Relative Density</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/relative-density/</link><pubDate>Tue, 04 Nov 2025 09:26:25 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/relative-density/</guid><description>
Density ($\rho$) is the mass per unit volume of a substance:
{{&amp;lt;eq&amp;gt;}}
density &amp;amp;= \frac{mass}{volume}
\rho &amp;amp;= \frac{m}{V}
{{&amp;lt;/eq&amp;gt;}}

The SI unit for density is thus the kilogram per cubic metre:
{{&amp;lt;eq&amp;gt;}}
\rho &amp;amp;= \frac{m}{V}
&amp;amp;\rightarrow \frac{kg}{m^3}
&amp;amp;= kgm^{-3}
{{&amp;lt;/eq&amp;gt;}}

## Defining relative density
The relative density of the substance is the ratio of the density of the substance to the density of a standard (normally we use water):
{{&amp;lt;eq&amp;gt;}}
\rho_{rel} &amp;amp;= …</description></item><item><title>Center of Gravity Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/center-of-gravity-lab/</link><pubDate>Mon, 03 Nov 2025 17:29:21 +0000</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/center-of-gravity-lab/</guid><description>
This lab experiment is based on the fact that when an object is allowed to pivot about a point, the force of gravity will be exerted through the center of gravity of the object so as to rotate the object such that the center of gravity will always be vertically aligned within the pivot. Only when this alignment is complete does the moment due to gravity about the pivot become zero ($0$).

## Aim
To find the approximate location of the center of gravity of an irregular lamina

## …</description></item><item><title>Newton's Laws of Motion</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/newtons-laws-of-motion/</link><pubDate>Mon, 03 Nov 2025 06:08:09 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/newtons-laws-of-motion/</guid><description>
There are three ($3$) laws of motion.

## First law
An object in uniform motion, or at rest, will remain in its state of uniform motion, or rest, given that no external unbalanced forces are acting.

## Second law
The rate of change of momentum of a body is directly proportional to the force applied and takes place in the direction of the applied force.

Given that the object has initial velocity $u$ and final velocity $v$, the initial momentum and final momentum will be $mu$ and $mv$ …</description></item><item><title>Projectile Motion</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/projectile-motion/</link><pubDate>Sat, 01 Nov 2025 10:19:19 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/projectile-motion/</guid><description>
Projectile motion is the motion of an object which is being influenced by gravity after being launched. The values which do not change for a projectile are:
- $u_x=u\cos{\theta}$
- $u_y=u\sin{\theta}$
- $a_x=0$ (no horizontal forces)
- $a_y=-g$ (the force of gravity acts vertically downwards, downwards being negative)

Applying the horizontal direction to the equation, $v=u+at$:
{{&amp;lt;eq&amp;gt;}}
v&amp;amp;=u+at
v_x&amp;amp;=u_x+a_xt
v_x&amp;amp;=u\cos{\theta}+(0)t
v_x&amp;amp;=u\cos{\theta}
v_x&amp;amp;=u_x
{{&amp;lt;/eq&amp;gt;}} …</description></item><item><title>Linear Momentum</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/linear-momentum/</link><pubDate>Sat, 01 Nov 2025 08:49:22 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/linear-momentum/</guid><description>
Linear momentum is the product of the mass and velocity of an object:

{{&amp;lt;eq&amp;gt;}}
momentum &amp;amp;= mass \times velocity
p &amp;amp;= m \times v
{{&amp;lt;/eq&amp;gt;}}

The SI unit for linear momentum is:
{{&amp;lt;eq&amp;gt;}}
p &amp;amp;= m \times v
&amp;amp;\rightarrow kg\times ms^{-1}
&amp;amp;=kgms^{-1}
{{&amp;lt;/eq&amp;gt;}}

## Example
Find the momentum of a car of mass $1000kg$ moving at a velocity of $4 ms^{-1}$ north.
{{&amp;lt;eq&amp;gt;}}
p &amp;amp;= m \times v
&amp;amp;= 1000kg \times 4ms^{-1}
&amp;amp;= 4000kgms^{-1}
{{&amp;lt;/eq&amp;gt;}}


## Law of conservation of linear momentum …</description></item><item><title>Linked List</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/linked-list/</link><pubDate>Tue, 28 Oct 2025 09:33:04 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/linked-list/</guid><description>
In C, we have to implement the Abstract Data Types (ADTs) ourselves. Implementations of these ADTs would be very limited if we had to base the underlying memory off of arrays in C. This is because *C arrays*, as we know, *are of fixed length*.

The solution to this issue is to use *dynamic memory allocation* in order to request chunks of memory during runtime as needed. We ask the computer for these chunks (called nodes) and connect/link them using pointers. This is the idea of a linked …</description></item><item><title>Abstract Data Types</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/abstract-data-types/</link><pubDate>Tue, 28 Oct 2025 09:32:51 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-2/module-1/abstract-data-types/</guid><description>
We know that C has many *primitive data types*. These include integers, characters, floats, doubles, arrays, etc. Primitive data types are **built-in data types** provided by the language. They are used to store and manipulate data in a program and are modelled that way because of the physical constraints imposed by the machine implementing them.

They are limited in that they are more concerned with the device used to run the program than the information that the programmer desires to …</description></item><item><title>The Equation of a Circle</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/the-equation-of-a-circle/</link><pubDate>Tue, 28 Oct 2025 05:40:46 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/the-equation-of-a-circle/</guid><description>
We have seen that the gradient and the y-intercept of a straight line are what make it special. In order to represent circles, we need to acknowledge that the following make one circle different from another:
- *the center* (two circles can have the same size but a different offset)
- *the radius* (concentric circles have the same center but different radius)

## The standard form
Given that a circle has a center $(a,b)$ and radius $r$ units, the standard form of the equation of the …</description></item><item><title>WHERE</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/sql/where/</link><pubDate>Mon, 27 Oct 2025 18:34:57 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/sql/where/</guid><description>
We can use the WHERE clause to filter information down to the rows that satisfy a certain condition(s). Run the following:

```sql
SELECT name,gender FROM biodata WHERE gender = &amp;#39;Male&amp;#39;;
```

Here only the rows that have the gender being exactly the word &amp;#34;Male&amp;#34; will be returned. By using **!=**, we can ask for the rows that do not match a certain condition, in this case the records with gender &amp;#34;Female&amp;#34;:
```sql
SELECT name,gender FROM biodata WHERE gender != &amp;#39;Male&amp;#39;;
```


## …</description></item><item><title>Archimedes' Principle</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/archimedes-principle/</link><pubDate>Mon, 27 Oct 2025 13:14:04 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/archimedes-principle/</guid><description>
This principle states that the upthrust experienced by a body which is wholly/partially immersed/submerged in a fluid is equal to the weight of the fluid displaced.</description></item><item><title>Pressure</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/pressure/</link><pubDate>Mon, 27 Oct 2025 13:14:03 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/pressure/</guid><description>
Pressure ($P$) is the force exerted per unit area:

{{&amp;lt;eq&amp;gt;}}
P&amp;amp;=\frac{F}{A}
{{&amp;lt;/eq&amp;gt;}}

The SI unit is the *Pascal($Pa$)*, equivalent to the pressure exerted by applying a one Newton ($1 N$) force over an area of one square-metre ($m^2$):

{{&amp;lt;eq&amp;gt;}}
P&amp;amp;=\frac{F}{A}
&amp;amp;\rightarrow \frac{1N}{1 m^2}
&amp;amp;=1 Pa
{{&amp;lt;/eq&amp;gt;}}

## Pressure in a fluid
In a fluid, **pressure increases with depth**. The pressure is also directly proportional to the density, $\rho$ of the fluid as well as acceleration …</description></item><item><title>Components and Resultants</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/components-and-resultants/</link><pubDate>Mon, 27 Oct 2025 07:08:02 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/components-and-resultants/</guid><description>
Any vector can be resolved into two ($2$) perpendicular components. This means that we can replace a vector with $2$ other vectors without the system showing any differences.</description></item><item><title>Forces</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/forces/</link><pubDate>Mon, 27 Oct 2025 07:07:49 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-4/forces/</guid><description>
A force is an action that can cause a change in shape, size or motion. This means that a force that cause an object to deform and/or cause it to speed up or slow down.</description></item><item><title>SELECT and FROM</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/sql/select/</link><pubDate>Sun, 26 Oct 2025 15:52:10 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/sql/select/</guid><description>
The *SELECT* clause is the most basic of the commands associated with **data manipulation**. We need some data first so we select the database:
```sql
USE mydatabase;
```

Then we create the table:
```sql
CREATE TABLE IF NOT EXISTS biodata (
 id INT AUTO_INCREMENT PRIMARY KEY,
 name VARCHAR(100) NOT NULL,
 email VARCHAR(100) NOT NULL UNIQUE,
 gender VARCHAR(10) NOT NULL,
 dob DATE NOT NULL,
 mass DECIMAL(5,2) NOT NULL,
 height DECIMAL(5,2) NOT NULL
);
``` …</description></item><item><title>Introduction to SQL</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/sql/introduction/</link><pubDate>Sun, 26 Oct 2025 15:32:11 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/sql/introduction/</guid><description>
SQL is the standard for managing structured data in industry. There is a debate as to whether SQL or NoSQL databases are better but it is wise to be able to work with both. SQL serves as:
- a *Data Definition Language (DDL)* - used to define and manage the structure of database objects
- a *Data Manipulation Language (DML)* - used to manage the data living within database objects

## Creating a database
We can have multiple databases in SQL. You can think about each database as …</description></item><item><title>The Constant Acceleration Equations of Motion</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/the-constant-acceleration-equations-of-motion/</link><pubDate>Sat, 25 Oct 2025 06:52:05 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/the-constant-acceleration-equations-of-motion/</guid><description>
The constant acceleration equations of motion are:
- $v=u+at$ **(no $s$)**
- $s=(\frac{u+v}{2})t$ **(no $a$)**
- $s=ut+\frac{1}{2}at^2$ **(no $v$)**
- $s=vt-\frac{1}{2}at^2$ **(no $u$)**
- $v^2=u^2+2as$ **(no $t$)**

Where $s$ is displacement, $u$ is initial velocity, $v$ is final velocity, $a$ is acceleration and $t$ is time. Time is the only scalar thus we apply the *sign convention* to the other physical quantities.

## Deriving the equations of motion
Starting with the defining …</description></item><item><title>Graphs Depicting Motion</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/graphs-depicting-motion/</link><pubDate>Sat, 25 Oct 2025 06:50:01 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/graphs-depicting-motion/</guid><description>
## Displacement-time graphs

## Velocity-time graphs

</description></item><item><title>Measuring Motion</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/measuring-motion/</link><pubDate>Sat, 25 Oct 2025 06:49:47 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-2/measuring-motion/</guid><description>
## Distance vs. Displacement
Displacement is the distance traveled in a particular direction. It has direction.

## Speed vs. Velocity

## Acceleration
This is the rate of change of velocity with respect to time:
{{&amp;lt;eq&amp;gt;}}
a=\frac{v-u}{t}
{{&amp;lt;/eq&amp;gt;}}

## Research Questions
You will be competent enough to answer the following:
- What is the difference between distance and displacement?
- What is the difference between speed and velocity?
- What is the significance of the gradient of …</description></item><item><title>The Equation of a Straight Line</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/the-equation-of-a-straight-line/</link><pubDate>Sat, 25 Oct 2025 06:02:11 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/the-equation-of-a-straight-line/</guid><description>
The form $y=mx+c$ is the known as the *slope-intercept form* of the equation of a straight line. This is because we can clearly read the gradient/slope ($m$) and the $y$ coordinate of the y-intercept ($c$) from this form.

The **general form** of the equation of a straight line is $ax+by+c=0$. It is not as easy to tell the gradient and y-intercept from this form as it requires some transposition to be done.

## Given the gradient and a point on the line
Given that $m$ is the gradient of …</description></item><item><title>Transformations of Functions</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/transformations-of-functions/</link><pubDate>Tue, 21 Oct 2025 17:23:43 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/transformations-of-functions/</guid><description>
## Translation along the x axis
Given the function
{{&amp;lt;eq&amp;gt;}}
f(x)
{{&amp;lt;/eq&amp;gt;}}

A translation of this function along the $x$ axis can be represented by
{{&amp;lt;eq&amp;gt;}}
f(x+a)
{{&amp;lt;/eq&amp;gt;}}

Here the function&amp;#39;s graph is *left-shifted* by $a$ units. When we have the form:
{{&amp;lt;eq&amp;gt;}}
f(x-a)
{{&amp;lt;/eq&amp;gt;}}

This represents a *right-shift* of the graph of the function by $a$ units.

{{&amp;lt;mcq&amp;gt;}}
The function $g(x)=\sin(x+3)$ is translation of the function $f(x)=\sin x$ along the $x$ axis in the positive …</description></item><item><title>Representing Data Using Diagrams</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/representing-data-using-diagrams/</link><pubDate>Fri, 10 Oct 2025 18:37:35 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/representing-data-using-diagrams/</guid><description>
Data can be *discrete*, having distinct separate values with **no** possibility of **in-between values** e.g. eye colour and favourite movie or *continuous*, having **intermediate values** e.g. heights and weights.

## Discrete data
Discrete data can be **quantitative** (having countable, numerical values) e.g. number of students writing math or **categorical data** (having distinct categories) e.g. favourite colour. *Categorical data* itself can be:
- **Nominal** - having categories with …</description></item><item><title>Descriptive Statistics</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/descriptive-statistics/</link><pubDate>Thu, 09 Oct 2025 19:53:54 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/descriptive-statistics/</guid><description>
When we have a dataset, we often will want to describe the dataset to others without having to show them all of the individual values which make up the dataset. This is especially true for very large datasets.

## Measures of location/central tendency
These values tell us where the data is centered around/located at. They include:
- Mean ($\bar{x}$) - the average of all of the data points. It is affected by the outliers (extreme values)
- Median ($Q2$) - the middle value. It is not …</description></item><item><title>Composition of Functions</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/composition-of-functions/</link><pubDate>Tue, 07 Oct 2025 13:50:22 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/composition-of-functions/</guid><description>
Sometimes we want to take the output of one function and use it as the input of another function. This is the idea of composing functions - we chain them together. Consider the notation:
{{&amp;lt;eq&amp;gt;}}
f\circ g(x)
{{&amp;lt;/eq&amp;gt;}}

This means that we substitute the function on the right, $g(x)$ into the function on the left, $f(x)$. That is, wherever we see $x$ in $f(x)$, we place $g(x)$:
{{&amp;lt;eq&amp;gt;}}
f\circ g(x)=f[g(x)]
{{&amp;lt;/eq&amp;gt;}}

## Example
Given the functions, $f(x)=x+4$ and $g(x)=\sqrt{x}$, the …</description></item><item><title>Inverse of a Function</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/inverse-of-a-function/</link><pubDate>Tue, 07 Oct 2025 13:50:02 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/inverse-of-a-function/</guid><description>
The inverse of a function does the opposite of the original function. If the function takes an input $a$ and produces an output $b$, the inverse function will take $b$ and produces $a$:
{{&amp;lt;eq&amp;gt;}}
f(a)&amp;amp;=b
f^{-1}(b)&amp;amp;=a
{{&amp;lt;/eq&amp;gt;}}

&amp;gt;Only bijective functions (those which are both *injective and surjective*) have inverses.

## The inverse of the inverse is the original function
Consider the functions $f(x)$ and
{{&amp;lt;eq&amp;gt;}}
g(x)=f^{-1}(x)
{{&amp;lt;/eq&amp;gt;}}

Then the function
{{&amp;lt;eq&amp;gt;}} …</description></item><item><title>Types of Functions</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/types-of-functions/</link><pubDate>Tue, 07 Oct 2025 13:49:27 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/types-of-functions/</guid><description>
There are three ($3$) types of functions that we study at this level:
- Injective functions
- Surjective functions
- Bijective functions

## Injective (one-to-one) functions
For a function to be injective, every $x$ value must have *exactly one ($1$)* $y$ value. In other words, every output has a unique input. Injective functions can be referred to as *injections*.

### The algebraic method of determining injectivity
Given a function $f(x)$, we let
{{&amp;lt;eq&amp;gt;}}
f(a)=f(b)
{{&amp;lt;/eq&amp;gt;}}
If …</description></item><item><title>Scalars and Vectors</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/scalars-and-vectors/</link><pubDate>Tue, 07 Oct 2025 07:12:42 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/scalars-and-vectors/</guid><description>
A scalar is a physical quantity that has a magnitude. A vector quantity has both magnitude and direction.

## Examples
Some scalars are:
- distance
- speed
- mass

Some vectors are:
- displacement
- velocity
- acceleration
- force

## Classifications of vectors
Vectors can be described in terms of their *direction*:
- Horizontal
- Vertical
- Oblique

Vectors can also be classified *relative to each other*:
- Parallel
- Anti-parallel
- Perpendicular

## Research …</description></item><item><title>Functions</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/functions/</link><pubDate>Mon, 06 Oct 2025 07:43:46 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/functions/</guid><description>
A relation is a relationship between two sets. Relations can be:
- **one-to-one** e.g. each student in a class receiving one fruit
- **one-to-many** e.g. one drummer playing for many bands (he&amp;#39;s free this Saturday btw)
- **many-to-one** e.g. many persons following an artist (they all claim Kes is their husband)
- **many-to-many** e.g. citizens reading many newspapers to find a consensus on what is true

The set of all inputs (x values) is referred to as the *domain*. The set of all …</description></item><item><title>Errors and Uncertainties</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/errors-and-uncertainties/</link><pubDate>Sun, 28 Sep 2025 09:00:24 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/errors-and-uncertainties/</guid><description>
Errors are an inherent part of the scientific process. Every measurement has an associated error, no matter how small. Because the measurement of physical quantities are central to science, scientists need to care about errors.

## Types of errors
There are three ($3$) types of errors:
- Systematic errors - consistent errors which occur due to the system being used to conduct the experiment. This system consists of the environment (e.g. temperature not being intentionally controlled), …</description></item><item><title>Homogeneity of Equations</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/homogeneity-of-equations/</link><pubDate>Sun, 28 Sep 2025 08:59:59 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/homogeneity-of-equations/</guid><description>
## Using any unit
We do not need to use the SI units for the physical quantities involved in an equation in order to show that the equation is homogeneous. Consider the case of speed:
{{&amp;lt;eq&amp;gt;}}
speed=\frac{distance}{time}
{{&amp;lt;/eq&amp;gt;}}

We can use $m/s$, $m$ and $s$ respectively for the units of speed, distance and time:
{{&amp;lt;eq&amp;gt;}}
m/s&amp;amp;=\frac{m}{s}
m/s&amp;amp;=m/s
{{&amp;lt;/eq&amp;gt;}}

We can also use $km/h$, $km$ and $h$ respectively for the units of speed, distance and time:
{{&amp;lt;eq&amp;gt;}}
km/h&amp;amp;=\frac{km}{h} …</description></item><item><title>SI Units</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/si-units/</link><pubDate>Sun, 28 Sep 2025 08:59:46 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/si-units/</guid><description>
The SI units are the standard units that we use to measure both fundamental and derived quantities.

## Multiples and submultiples
Multiples help us to represent large numbers without having to write many digits.

{{&amp;lt;table title=&amp;#34;Table showing some common multiples&amp;#34;&amp;gt;}}
| Multiple prefix | Symbol | Value | Value expressed as a power of 10 |
| -------- | ------ | ------------- | -------------------------------- |
| Kilo- | k | 1,000 | $10^3$ …</description></item><item><title>Physical Quantities</title><link>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/physical-quantities/</link><pubDate>Sun, 28 Sep 2025 08:59:37 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-physics/physics-1/physical-quantities/</guid><description>
These are the properties of solids, liquids and gases that can be *measured/quantified*. Examples include the **volume of a gas**, **temperature of a cup of tea**, **height of a building**, etc.

## Fundamental quantities
These are the physical quantities from which all other physical quantities are derived. According to the International System of Units (SI), there are **seven (7)** fundamental quantities:

{{&amp;lt;table&amp;gt;}}
| Quantity | Symbol | Unit | Abbreviation for unit | …</description></item><item><title>Conditional Probability</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/conditional-probability/</link><pubDate>Sun, 28 Sep 2025 08:56:08 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/conditional-probability/</guid><description>
When working with probabilities previously, we would have assumed that we are asked to state the probability of an event given that we are working with the entire *universal set, $U$*. Thus, for an event $A$, the probability is:
{{&amp;lt;eq&amp;gt;}}
P(A)=\frac{n(A)}{n(U)}
{{&amp;lt;/eq&amp;gt;}}

We can think of this as the conditional probability of *$A$ given $U$*:
{{&amp;lt;eq&amp;gt;}}
P(A|U)=\frac{n(A)}{n(U)}
{{&amp;lt;/eq&amp;gt;}}

What if we are given only the elements of the set $B$? The conditional probability of *$A$ given …</description></item><item><title>Introduction to Probability</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/introduction-to-probability/</link><pubDate>Sun, 28 Sep 2025 08:55:55 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-5/introduction-to-probability/</guid><description>
The probability of an event is the ratio of the number of outcomes associated with that event divided by the total number of possible outcomes:

{{&amp;lt;eq&amp;gt;}}
P(A)=\frac{n(A)}{n(U)}
{{&amp;lt;/eq&amp;gt;}}

Consider the case of flipping an *unbiased* coin. There are $2$ possible outcomes:
- landing a head or
- landing a tail

There is only one outcome associated with getting a tail thus the probability of getting a tail is:
{{&amp;lt;eq&amp;gt;}}
P(T)&amp;amp;=\frac{n(T)}{n(U)}
&amp;amp;=\frac{1}{2}
{{&amp;lt;/eq&amp;gt;}}

Consider the …</description></item><item><title>Solving Quadratic Inequalities</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/solving-quadratic-inequalities/</link><pubDate>Sun, 28 Sep 2025 08:55:29 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/solving-quadratic-inequalities/</guid><description>
When solving a quadratic inequality, we need to first determine the roots of the original quadratic equation. This will allow us to determine the x-values relative to which the region of solutions will be stated.
</description></item><item><title>Solving and Sketching Quadratic Curves</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/solving-and-sketching-quadratic-curves/</link><pubDate>Sun, 28 Sep 2025 08:55:00 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/solving-and-sketching-quadratic-curves/</guid><description>
In order to sketch quadratic curves, we need to ascertain some critical information about the curve:
- the y-intercept, $(0,c)$ obtained from $ax^2+bx+c$
- the x-intercepts (if any) obtained from solving $ax^2+bx+c=0$
- the turning point $(-h,k)$ obtained from completing the square $a(x+h)^2+k$</description></item><item><title>Pointers</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/pointers/pointers/</link><pubDate>Tue, 23 Sep 2025 10:20:32 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/pointers/pointers/</guid><description>
Pointers are variables used to store the locations of other variables.

The syntax for declaring a pointer is:
```c
pointerType *pointerName;
```

Consider the following code:
{{&amp;lt;code &amp;#34;pointers.c&amp;#34;&amp;gt;}}

A variable *myPointer* is created to store the location of the variable *age*. Notice how we use **&amp;amp;age** to access the location of the variable *age*.

The *unary operator \** is used to access the value at (dereference) the pointer. We can shorten the lines:
```c
int *myPointer; …</description></item><item><title>Completing the Squares</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/completing-the-squares/</link><pubDate>Thu, 18 Sep 2025 23:18:34 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/completing-the-squares/</guid><description>
A quadratic polynomial is a polynomial whose *degree* (the highest power of $x$) is $2$. The general form of a quadratic polynomial is:

{{&amp;lt;eq&amp;gt;}}
y=ax^2+bx+c
{{&amp;lt;/eq&amp;gt;}}

## The coefficient of $x^2$
The coefficient of $x^2$ tells us whether the curve is a maximum curve (a frown) or a minimum curve (a smile). In other words, it tells us the *nature of the turning point*.
&amp;gt;When $a$ is *positive* we have a minimum curve (*positive people like to smile*). When $a$ is **negative** we have a …</description></item><item><title>Introduction</title><link>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/intro/</link><pubDate>Thu, 18 Sep 2025 22:25:01 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cambridge/as-pure-mathematics/pure-mathematics-1/intro/</guid><description>
The following topics are considered to be necessary before attempting to learn this content for this module of Cambridge AS Pure Mathematics.

## Transposition
This is a fancy term which means changing the subject of the formula.

## Laws of indices
Any number raised to the power of $1$ is itself:
{{&amp;lt;eq&amp;gt;}}
a^1&amp;amp;=a
{{&amp;lt;/eq&amp;gt;}}

Any number raised to the power of zero ($0$) is $1$:
{{&amp;lt;eq&amp;gt;}}
a^0&amp;amp;=1
{{&amp;lt;/eq&amp;gt;}}

When multiplying two terms with the same base, it is the same as writing the …</description></item><item><title>Goroutines</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/goroutines/</link><pubDate>Wed, 17 Sep 2025 14:01:39 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/goroutines/</guid><description>
A goroutine is a lightweight thread of execution. We can use them to execute instructions *concurrently*. Go uses the **fork-join** paradigm for concurrency. By utilizing primitives such as *goroutines*, *channels* and *select*, we can coordinate when the forking and joining happens.

&amp;gt;The *main()* function in Go is executed within the context of a goroutine - the **main** goroutine. All other goroutines are spawned from it.

## Spawning a goroutine
After defining the function, use the …</description></item><item><title>The Aesthetics of Play</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/the-aesthetics-of-play/</link><pubDate>Mon, 08 Sep 2025 19:22:34 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/the-aesthetics-of-play/</guid><description>
Whereas game genres are defined by how we choose to categorize games, the *aesthetics of play* are the reasons we play games. When we take a mundane task and **gamify** it, we simply integrate one or more of the aesthetics of play into that activity.

Watch this video:
{{&amp;lt;youtube &amp;#34;uepAJ-rqJKA&amp;#34; &amp;#34;Extra Credits&amp;#34;&amp;gt;}}

## Sensation
*Game as sense-pleasure* - We play games because we like the music or the visuals or the **game juice/feel**. Examples:
- Patapon is a rhythm-based game that …</description></item><item><title>What Is a Game?</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/what-is-a-game/</link><pubDate>Mon, 08 Sep 2025 19:21:38 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/what-is-a-game/</guid><description>
A game is a form of structured play or activity governed by rules, roles, goals and challenges and taken by players for entertainment.

## Characteristics of game
Games tend to have:
- players - the person(s) participating in the game
- rules - the constraints under which the game is executed
- choices - the players have some degree of agency in which affecting the outcome of the game
- outcomes - there is usually an end state in which we can conclude that the game has ended; outcomes …</description></item><item><title>What Is Animation?</title><link>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/what-is-animation/</link><pubDate>Mon, 08 Sep 2025 19:21:26 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/animation-and-game-design-unit-1/module-1/what-is-animation/</guid><description>
Animation is the art of using multiple images to depict motion/create the *illusion of movement*. Whereas a painting or picture only shows a static image, an animation is a **series of successive static images/drawings/models** that convey information about movement in the scene.

Our eyes are only able to retain images for about $100$ milliseconds thus when presented with many successive images, the viewer&amp;#39;s brain processes these images to appear as a single moving image.

## Frame rate …</description></item><item><title>Errors</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/errors/</link><pubDate>Fri, 05 Sep 2025 10:15:40 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/errors/</guid><description>
As opposed to other languages like Python and JavaScript that use a *try-catch* approach to error handling, Go encourages us to return a separate value that will indicate that the code did not perform in an ideal manner - an error.

This way of handling errors ensures that dealing with errors are part of the normal *execution flow* of the code, instead of having a structure that can be completely left out, as is the case of a try-catch.

## Convention
It is customary to return the error …</description></item><item><title>Iterators</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/iterators/</link><pubDate>Sat, 30 Aug 2025 10:00:28 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/iterators/</guid><description>
Iterators are functions with a special signature:
```go
func (yield func(V) bool)
```
Iterators *yield* one value at a time, allowing us to range over a queue of values instead of getting all values all at once.

{{&amp;lt;code &amp;#34;iterators.go&amp;#34;&amp;gt;}}</description></item><item><title>Generics</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/generics/</link><pubDate>Sat, 30 Aug 2025 09:00:01 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/generics/</guid><description>
Generics help us to avoid redundant declarations of functions by allowing us to specify type parameters for the data being passed to the function. Consider the following code:

{{&amp;lt;code &amp;#34;generics-1.go&amp;#34;&amp;gt;}}

The functions *SumInts* and *SumFloats* are used to find the sum of the integers and floats respectively passed via maps into them. This might become even more redundant if we have to handle other numeric data types.

We can replace these two functions with a single **generic function** …</description></item><item><title>Struct Embedding</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/struct-embedding/</link><pubDate>Fri, 15 Aug 2025 09:29:58 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/struct-embedding/</guid><description>
Go uses struct and interfaces to help developers achieve **composition**. We can embed structs within other structs and access the methods and variables of the child struct from the parent struct.

{{&amp;lt;code &amp;#34;struct-embedding.go&amp;#34;&amp;gt;}}

The name of the struct *bag* serves as the field we use to access its methods and data (via **me.bag**). Please note that the declaration for *Player* is:
```go
type Player struct {
	name string
	age int
	bag
}
```

And not:
```go
type Player struct …</description></item><item><title>Enums</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/enums/</link><pubDate>Fri, 15 Aug 2025 09:06:20 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/enums/</guid><description>
Enums (enumerated types) are *sum types* that have a fixed number of possible values, each with a distinct name. Golang enums are not a language specific feature but we can implement them using existing language idioms.

{{&amp;lt;code &amp;#34;enums.go&amp;#34;&amp;gt;}}

## The Stringer interface
The **fmt.Stringer** interface dictates how the *fmt* print commands will format the output when the item implementing the interface is passed as an argument to that print command:

{{&amp;lt;code &amp;#34;fmt-stringer.go&amp;#34;&amp;gt;}}

The …</description></item><item><title>Interfaces</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/interfaces/</link><pubDate>Thu, 14 Aug 2025 07:32:15 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/interfaces/</guid><description>
These are named collections of method signatures (function signatures). Once a struct has the same method signatures as an interface, we say that the struct *satisfies* that interface - it serves as an implementation of the interface. Here is an example of two structs (**rect** and **circle**) which both satisfy a *geometry* interface:

{{&amp;lt;code &amp;#34;interfaces-geometry.go&amp;#34;&amp;gt;}}

The function *measure* accepts an interface of type **geometry** which means it can operate on any struct that …</description></item><item><title>Methods</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/methods/</link><pubDate>Tue, 12 Aug 2025 11:20:59 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/methods/</guid><description>
In Go, we can attach methods (functions) onto structs to make them behave like objects in other languages.

&amp;gt;Objects own data (they have variables) and perform actions (they have functions).

Each method has a *receiver type* which is the type of the struct:

{{&amp;lt;code &amp;#34;methods.go&amp;#34;&amp;gt;}}

## Pointer receiver type vs. normal receiver type
We can also use the normal receiver type *person* instead of the pointer receiver type *\*person*:

{{&amp;lt;code &amp;#34;methods-alt.go&amp;#34;&amp;gt;}}

The pointer receiver …</description></item><item><title>Structs</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/structs/</link><pubDate>Mon, 11 Aug 2025 09:32:02 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/structs/</guid><description>
These are typed collections of fields. We use structs in order to group related data together as records. Consider a struct with four ($4$) member variables:

{{&amp;lt;code &amp;#34;struct-person.go&amp;#34;&amp;gt;}}

For person **p**, we list the member variables in the order in which they are declared in the struct - *name*, *age*, *xPosition*, *yPosition* respectively. For person **p2**, we use the names of the member variables - these can be listed in any order. The latter form is more commonly used as the former …</description></item><item><title>Pointers</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/pointers/</link><pubDate>Sun, 10 Aug 2025 10:24:39 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/pointers/</guid><description>
We can work with variables using their *identifiers* but we can also work with the underlying memory in which we store those variables. **Pointers** allow us to do this. A pointer is a variable that stores the memory address of another variable.

## Memory locations
We can get the memory location of a variable by using the *ampersand &amp;amp;* before the name of the variable:

{{&amp;lt;code &amp;#34;print-memory-location.go&amp;#34;&amp;gt;}}

## Dereferencing a pointer
This is where we get the actual value being stored …</description></item><item><title>Range Over Built-in Types</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/range-over-built-in-types/</link><pubDate>Sat, 09 Aug 2025 11:59:02 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/range-over-built-in-types/</guid><description>
The *range* keyword in Golang allows us to iterate over the elements in numerous built-in types. We can range over numbers, slices, etc., with a simple syntax.

## Range over slice
We can range over the individual elements in a slice without using the index of each element - here we use the **blank identifier _** where the index would be:

{{&amp;lt;code &amp;#34;range-over-slice.go&amp;#34;&amp;gt;}}

### Slice with index
We can also make use of the index if we so desire:

{{&amp;lt;code …</description></item><item><title>Recursion</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/recursion/</link><pubDate>Thu, 17 Jul 2025 14:50:11 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/recursion/</guid><description>
We have seen that functions can call other functions. Recursion means that functions can call themselves. In each consecutive call, the computation done is dependent on the data produced by the previous call.

One good example of recursion is the factorial. Recall that $n!$ (n factorial) is simply the product of all numbers from $1$ to $n$:
{{&amp;lt;eq&amp;gt;}}
n!=1\times 2\times 3\times ... \times (n-1) \times n
{{&amp;lt;/eq&amp;gt;}}

We can write a function to find the factorial of a number:
{{&amp;lt;code …</description></item><item><title>Closures</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/closures/</link><pubDate>Sun, 13 Jul 2025 10:15:56 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/closures/</guid><description>
A closure is a function that stores (&amp;#34;closes over&amp;#34;) an environment (a set of captured variables) and another function that uses that environment. We can create closures using *anonymous functions*.

&amp;gt;Anonymous functions are functions without an identifier (a name). They are useful when we may want to associate a set of steps with arguments and/or return values without having to refer to or call the function more than once.

Here is an example of a closure:
{{&amp;lt;code &amp;#34;closure.go&amp;#34;&amp;gt;}}

The …</description></item><item><title>Variadic Functions</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/variadic-functions/</link><pubDate>Sun, 13 Jul 2025 09:40:26 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/variadic-functions/</guid><description>
These are functions that can accept any number of arguments. We have already seen **Println** from the *fmt* package. It can accept many values and string them together to be outputted into the console. Here is a function that accepts any number of integers and returns their product:

{{&amp;lt;code &amp;#34;variadic-product.go&amp;#34;&amp;gt;}}

Defining the function this way allows us to access the values in the *numbers* variable as if they were in a slice. In fact, we can pass a slice of integers into the function …</description></item><item><title>Functions</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/functions/</link><pubDate>Mon, 30 Jun 2025 17:11:15 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/functions/</guid><description>
Functions basically accept values and return values. They are the basic unit of abstraction in Go.
&amp;gt;*Abstraction* is the concept of hiding what happens in the background in order to simplify one&amp;#39;s view of a system. **An abstraction** is a simplified view of a system which omits unimportant details.

For example, we do not have to know how the **Println** function in the *fmt* package actually works to add characters to the console, in order to use **Println**. This means that the *Println* …</description></item><item><title>Maps</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/maps/</link><pubDate>Mon, 30 Jun 2025 17:11:06 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/maps/</guid><description>
Maps allow us to map items (keys) onto other items (values). We create a make using the syntax:

```go
make(map[keyType]valueType)
```

Here we create a map of strings onto integers, where the key is the name of the person and the value is their age:
{{&amp;lt;code &amp;#34;age-map.go&amp;#34;&amp;gt;}}
Notice how we use the format:

```go
mapName[key]
```

to create, edit and access the value of the map at that key.

## Accessing a value for a non-existent key
Run the following code:
{{&amp;lt;code …</description></item><item><title>Slices</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/slices/</link><pubDate>Tue, 24 Jun 2025 21:33:52 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/slices/</guid><description>
Slices are the hip alternative to arrays in Go. They can be resized and grow in *capacity*, without us having to do any memory management, as we append values to them. The zero value of a slice is *nil* and its length is $0$:

{{&amp;lt;code &amp;#34;slice-uninit.go&amp;#34;&amp;gt;}}

A slice can created with default values dependent on the zero value of the datatype used. Creating such a slice is done using the **make** function:
{{&amp;lt;code &amp;#34;make-slice.go&amp;#34;&amp;gt;}}

Notice how the shopping list slice contains a set of $5$ …</description></item><item><title>Arrays</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/arrays/</link><pubDate>Tue, 24 Jun 2025 21:33:47 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/arrays/</guid><description>
Arrays provide a way for us to store many values of the same type under the same name. These individual values are found within the array via their *index*.

The format for declaring an array is:
```go
var arrayName [elementCount] dataType
```
We can set access the individual elements using the index:
```go
arrayName[index]
```

## Indexing begins at zero
Indexing in Golang, like many other languages, begins at zero ($0$). An array named **names** with $3$ elements will allow us to …</description></item><item><title>For Loops</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/for-loops/</link><pubDate>Sat, 21 Jun 2025 11:11:37 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/for-loops/</guid><description>
We can repeat lines of code by using a **for loop** in Golang. It is Go&amp;#39;s only looping construct. Other languages have *while*, *do-while* constructs, *go-to* statements, etc. for looping but Go avoids the confusion by giving us a versatile iterative construct to work with.

## Single condition
We can use a for loop like a while loop where we have a single condition and change the sentinel value (**i**) within the loop:
{{&amp;lt;code &amp;#34;for-while.go&amp;#34;&amp;gt;}}

## C-styled for loop (initial; condition; …</description></item><item><title>Switch-Case Statements</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/switch-case/</link><pubDate>Sat, 21 Jun 2025 11:11:36 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/switch-case/</guid><description>
Switch statements are used as an alternative to if-else statements with many branches in which each branch checks to see if a value or expression matches a target:

{{&amp;lt;code &amp;#34;switch.go&amp;#34;&amp;gt;}}

Notice how we can have many values as is listed in *case 2, 3*. If the value of **choice** does not match any of the cases, the *default* will run. In this case, the user is told that the choice is not a valid option.

## A note on Scanln
The *Scanln* function in the *fmt* package is used to accept …</description></item><item><title>If-Else Statements</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/if-else/</link><pubDate>Sat, 21 Jun 2025 10:00:05 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/if-else/</guid><description>
We can have sections run only if a certain condition or conditions is/are satisfied. This can be achieved using if-else statements. Consider the following code:

{{&amp;lt;code &amp;#34;if-adult.go&amp;#34;&amp;gt;}}

The condition we use here is a check to see if the age is greater than or equal to (coded as **&amp;gt;=**) the value of $18$. If the age is at least $18$, the program will print &amp;#34;You are an adult&amp;#34; onto the console. If not, it will print &amp;#34;You are not old enough&amp;#34;. Try changing the age to $14$ and re-running the …</description></item><item><title>Values and Variables</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/values-and-variables/</link><pubDate>Fri, 20 Jun 2025 16:48:54 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/values-and-variables/</guid><description>
We have seen how to print a basic set of characters (referred to as a **string**) to the console. We can work with a host of other values: **integers**, **floats**, **booleans**, etc. We can store these in &amp;#34;containers&amp;#34; in memory, *variables*. The name of the variable is how we can use the value stored in that container. We use **var** to declare one or more variables:

{{&amp;lt;code &amp;#34;using-variables.go&amp;#34;&amp;gt;}}

*myName* is a variable that will store a string because its initial value to set to …</description></item><item><title>Your First Go Program</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/your-first-go-program/</link><pubDate>Fri, 20 Jun 2025 16:17:20 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/golang/your-first-go-program/</guid><description>
We must do the obligatory &amp;#34;Hello World&amp;#34; program. Copy and paste, or preferably type from scratch, the following the program in your favourite text editor:

{{&amp;lt;code &amp;#34;hello-world.go&amp;#34;&amp;gt;}}

The *fmt* package contains the **Printf()** function. This function accepts a set of characters and pushes them into the console.

## Running our program
Save the file as &amp;#34;hello-world.go&amp;#34; and run it by using the following command:
```sh
go run hello-world.go
```
The following output will be seen: …</description></item><item><title>X-Rays</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/x-rays/</link><pubDate>Tue, 06 May 2025 20:43:16 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/x-rays/</guid><description>
X-rays are the result of bombarding a metal surface with high speed electrons. This speed is achieved by subjecting the electrons to a large potential difference. This p.d. causes the electrons to accelerate to a higher speed than usual.

Electromagnetic radiation (Bremsstrahlung radiation) is created, with the wavelength of the rays varying inversely with the acceleration of the particles.

## The X-ray tube
This is a device used to produce X-rays. The cathode is heated and electrons are …</description></item><item><title>Stopping Potential</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/stopping-potential/</link><pubDate>Tue, 06 May 2025 19:38:11 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/stopping-potential/</guid><description>
Imagine that we have two parallel plates at the two ends of a vacuum tube. We can shine a light with sufficient energy ($hf\geq\phi$) and cause photoelectrons to travel from one plate onto the next.

This will result in a photoelectric current. We can then apply a potential difference across the two plates such that we oppose the photoelectric current produced.

{{&amp;lt;optimg link=&amp;#34;https://www.cyberphysics.co.uk/topics/atomic/Photoelectric_effect/Photoelectric_effect_stopping_potential.html&amp;#34; …</description></item><item><title>Theories of Light and the Photoelectric Effect</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/theories-of-light-and-the-photoelectric-effect/</link><pubDate>Tue, 06 May 2025 18:54:48 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/theories-of-light-and-the-photoelectric-effect/</guid><description>
Wave theory sufficiently explains the reflection, refraction, diffraction and interference of light. It, however, fails to explain the photoelectric effect.

## Intensity of the light
This is the power transmitted to unit cross sectional area of the material containing the electrons. Classical Physics would posit that light with a sufficient intensity (brightness) will be able to dislodge the electrons.

However, it does not matter how intense the light is, if it does not possess the …</description></item><item><title>Kilometers per Hour to Meters per Second Calculator</title><link>https://chickenfrybytes.com/learn/university/misc/conversions/km-per-hour-to-m-per-second/</link><pubDate>Tue, 06 May 2025 08:23:40 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/misc/conversions/km-per-hour-to-m-per-second/</guid><description>
{{&amp;lt;calculator factor=&amp;#34;0.27777777777&amp;#34; from=&amp;#34;$km/h$&amp;#34; to=&amp;#34;$m/s$&amp;#34;&amp;gt;}}

A kilometer per hour is the simply a kilometer divided by an hour:
{{&amp;lt;eq&amp;gt;}}
1km/h=\frac{1km}{1h}
{{&amp;lt;/eq&amp;gt;}}

We can express $1km$ in meters and $1h$ in seconds:
{{&amp;lt;eq&amp;gt;}}
1km&amp;amp;=1000m
1h&amp;amp;=3600s
{{&amp;lt;/eq&amp;gt;}}

Thus we can substitute these values into the original ratio:
{{&amp;lt;eq&amp;gt;}}
1km/h&amp;amp;=\frac{1km}{1h}=\frac{1000m}{3600s}
\therefore 1km/h&amp;amp;=0.2\overline{7} m/s
{{&amp;lt;/eq&amp;gt;}}

Hence, in order to convert a value from km/h to …</description></item><item><title>The Photoelectric Effect</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/the-photoelectric-effect/</link><pubDate>Fri, 02 May 2025 18:57:27 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-3/the-photoelectric-effect/</guid><description>
There is evidence that light behaves like a wave - it can undergo reflection, refraction, diffraction and interference. Light, however, is not limited to this wave behaviour. At smaller scales, light behaves like a particle. The *photoelectric effect* is one phenomenon that helps us to explain this particulate theory. When a photon strikes a metallic surface, it can dislodge an electron:

{{&amp;lt;optimg src=&amp;#34;photoelectric-effect.webp&amp;#34; link=&amp;#34;https://scienceinfo.com/photoelectric-effect/&amp;#34; …</description></item><item><title>The Best Things in Life Are Opinionated</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/the-best-things-in-life-are-opinionated/</link><pubDate>Mon, 17 Mar 2025 17:42:17 +0000</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/the-best-things-in-life-are-opinionated/</guid><description>
With the rapid development of new frameworks and other web technologies, design constraints are more necessary now than ever. There are a host of voices online, posing as authorities in the web space, who are advising new developers to learn the latest tech stacks and tools.

While this may be from a position of good intention, it can lead junior devs to an endless goose chase to test out new tech more than they create useful software.

This article focuses on the importance of design …</description></item><item><title>Electromagnetic Induction</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electromagnetic-induction/</link><pubDate>Wed, 05 Mar 2025 17:40:05 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electromagnetic-induction/</guid><description>
Given that the magnetic flux density $B$ is a measure of the amount of magnetic field that passes through unit area of a surface, the *magnetic flux $\phi$* through an area $A$ is:
{{&amp;lt;eq&amp;gt;}}
\phi=BA
{{&amp;lt;/eq&amp;gt;}}

The angle that the field makes with the surface matters. If an angle of $\theta$ is formed between the normal to the surface and the field then the flux is given by
{{&amp;lt;eq&amp;gt;}}
\phi=BA\cos{\theta}
{{&amp;lt;/eq&amp;gt;}}

{{&amp;lt;optimg src=&amp;#34;magnetic-flux-at-an-angle-to-surface.png&amp;#34; caption=&amp;#34;Magnetic …</description></item><item><title>The Hall Effect</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/the-hall-effect/</link><pubDate>Wed, 05 Mar 2025 17:39:26 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/the-hall-effect/</guid><description>
Recall that when a conductor is exposed to an electric field, the free electrons in the metal move at [drift velocity](../drift-velocity). If we expose this conductor to a perpendicular external magnetic field, each electron will experience a force:
{{&amp;lt;eq&amp;gt;}}
F&amp;amp;=BQv\sin{\theta}
F&amp;amp;=Be\nu
{{&amp;lt;/eq&amp;gt;}}
since $e$ is the charge on an electron and $\nu$ is the drift velocity of an electron. The angle $\theta=90\degree$ due to the magnetic field being perpendicular.

The result of this is that a …</description></item><item><title>Electromagnets</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electromagnets/</link><pubDate>Wed, 05 Mar 2025 17:38:48 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electromagnets/</guid><description>
Electromagnets make use of the fact that when a current flows through a conductor, a magnetic field is created. The magnetic field is especially strong when we use a *solenoid* - the shape of this long coil concentrates the magnetic field in the space around the coil.

## Effect of using a soft iron core
The soft iron core is used to strengthen the magnetic field created in the solenoid. The soft iron is:
- highly permeable
- easily magnetised, and thus demagnetised

## Uses of …</description></item><item><title>Magnetic Forces</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/magnetic-forces/</link><pubDate>Wed, 05 Mar 2025 17:37:27 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/magnetic-forces/</guid><description>
Different magnetic fields can be produced from passing current through a conductor. By changing the shape of the conductor, we can vary the strength of the magnetic field formed.

## Force around a long straight wire
When a current is flowing through a straight wire, a magnetic field is formed around the wire:

{{&amp;lt;optimg src=&amp;#34;field-around-long-straight-wire-hyperphysics.png&amp;#34; credits=&amp;#34;HyperPhysics&amp;#34; link=&amp;#34;http://hyperphysics.phy-astr.gsu.edu/hbase/magnetic/magcur.html&amp;#34; caption=&amp;#34;Magnetic …</description></item><item><title>Magnetic Fields</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/magnetic-fields/</link><pubDate>Wed, 05 Mar 2025 17:36:55 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/magnetic-fields/</guid><description>
A *lodestone* is a naturally occuring piece of magnetic material. It exhibits **ferromagnetism**. There are actually three (3) types of magnetism:
- Ferromagnetism e.g. iron
- Paramagnetism e.g. aluminum
- Diamagnetism e.g. water

{{&amp;lt;youtube &amp;#34;84BZ9-uS9Ug&amp;#34; &amp;#34;Reactions Youtube Channel&amp;#34;&amp;gt;}}

Bar magnets, which are typically made of an alloy of iron, show two types of magnetic poles (magnetic north and south). These poles repel or attract each other based on their polarity.

## The Law of …</description></item><item><title>Charging and Discharging Capacitors</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/charging-and-discharging-capacitors/</link><pubDate>Wed, 05 Mar 2025 17:35:07 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/charging-and-discharging-capacitors/</guid><description>
A capacitor will behave differently depending on if there is a power source in the same loop. If a power source is present, the capacitor will charge. Otherwise it will discharge and behave like a power source itself.

## Charging a capacitor
We usually charge a capacitor through a resistor:
{{&amp;lt;optimg src=&amp;#34;charging-capacitor.png&amp;#34;&amp;gt;}}

Given that the voltages across the power supply, capacitor (capacitance $C$) and resistor (resistance $R$) are $V_S$, $V_C$ and $V_R$ respectively, we can …</description></item><item><title>Capacitors in Series and Parallel</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/capacitors-in-series-and-parallel/</link><pubDate>Wed, 05 Mar 2025 17:34:43 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/capacitors-in-series-and-parallel/</guid><description>
Capacitors can be placed in series and in parallel in order to effectively produce new capacitances. We know how resistance behaves in series and parallel:
{{&amp;lt;eq&amp;gt;}}
R_T&amp;amp;=R_1+R_2+R_3
\frac{1}{R_T}&amp;amp;=\frac{1}{R_1}+\frac{1}{R_2}+\frac{1}{R_3}
{{&amp;lt;/eq&amp;gt;}}
Then the opposite counts for capacitors in series and parallel. For series:
{{&amp;lt;eq&amp;gt;}}
\frac{1}{C_T}&amp;amp;=\frac{1}{C_1}+\frac{1}{C_2}+\frac{1}{C_3}
{{&amp;lt;/eq&amp;gt;}}

In parallel:
{{&amp;lt;eq&amp;gt;}}
C_T&amp;amp;=C_1+C_2+C_3
{{&amp;lt;/eq&amp;gt;}}

## Deriving the effective …</description></item><item><title>Capacitance</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/capacitance/</link><pubDate>Wed, 05 Mar 2025 17:33:08 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/capacitance/</guid><description>
The capacitance, $C$ of a capacitor is the charge stored per unit potential difference. It is simply the ratio of the charge stored to the voltage applied the ends of the capacitor:
{{&amp;lt;eq&amp;gt;}}
C=\frac{Q}{V}
{{&amp;lt;/eq&amp;gt;}}

It is measured in Farads ($F$):
{{&amp;lt;eq&amp;gt;}}
\frac{Q}{V}\rightarrow \frac{\text{Coulombs}(C)}{\text{Volts}(V)}=CV^{-1}=F
{{&amp;lt;/eq&amp;gt;}}
&amp;gt;Because a farad of capacitance is very large for most everyday applications, it is common to see capacitance being stated in **microfarads ($\mu …</description></item><item><title>Electric Fields</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electric-fields/</link><pubDate>Wed, 05 Mar 2025 17:31:47 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electric-fields/</guid><description>
An electric field is the region around a charged object within which another charged object experiences an attractive or repulsive force.

## The direction of an electric field
We define the direction of an electric field at a point as the direction in which a small positive charge will move when placed at that point in the field. 

This is why we draw the electric field lines of positively charged objects with arrows leaving (the positive point charge is pushed outwards):
{{&amp;lt;optimg …</description></item><item><title>Electric Potential</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electric-potential/</link><pubDate>Wed, 05 Mar 2025 17:22:45 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electric-potential/</guid><description>
The eletric potential at a point is defined as the *work done in moving unit charge* from infinity to that point:
{{&amp;lt;eq&amp;gt;}}
\text{work}&amp;amp;=\text{force}\times \text{distance}
W&amp;amp;=F\times r
{{&amp;lt;/eq&amp;gt;}}
Electric potential is the work done per unit charge so we divide throughout by $Q$:
{{&amp;lt;eq&amp;gt;}}
\color{red}\frac{W}{Q}\color{normal}&amp;amp;=\color{royalblue}\frac{F}{Q}\color{normal}\times r
\color{red}V\color{normal}&amp;amp;=\color{royalblue}E\color{normal}\times r
V&amp;amp;=\frac{Q}{4\pi\epsilon_0r^2}\times r …</description></item><item><title>Coulomb's Law</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/coulombs-law/</link><pubDate>Wed, 05 Mar 2025 17:19:57 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/coulombs-law/</guid><description>
Recall Newton&amp;#39;s Law of Gravitation - the force of attraction between two objects is directly proportional to the product of their masses and inversely proportional to the separation distance:
{{&amp;lt;eq&amp;gt;}}
F_{gravity}=\frac{Gm_1m_2}{r^2}
{{&amp;lt;/eq&amp;gt;}}

Gravity happens by virtue of objects having mass. Electric repulsion happens by virtue of objects having charge, not mass:
{{&amp;lt;eq&amp;gt;}}
F_{electric}=\frac{kQ_1Q_2}{r^2}
{{&amp;lt;/eq&amp;gt;}}

This *inverse square law* is known as **Coulomb&amp;#39;s Law**, with the …</description></item><item><title>Conductors and Insulators</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/conductors-and-insulators/</link><pubDate>Wed, 05 Mar 2025 17:19:38 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/conductors-and-insulators/</guid><description>
Recall that there are two ($2$) types of electricity:
- *Static electricity* is associated with the excess/lack of charged particles
- *Current electricity* is associated with the movement of charge

Conductors are materials which allow for the easy flow of electric current. Insulators do not allow this. This does not mean that insulators are undesirable when studying electricity - they are used to produce static electricity.

&amp;gt;**Electrification (a.k.a. charging)** by friction is done by …</description></item><item><title>Effective Resistance</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/effective-resistance/</link><pubDate>Wed, 05 Mar 2025 17:18:10 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/effective-resistance/</guid><description>
The effective resistance begs the question: &amp;#34;What single resistor can be used to replace all of these other resistors in my circuit?&amp;#34;. We already know how voltage and current behave in series and parallel circuits so we can easily deduce how the resistance, by Ohm&amp;#39;s Law, will behave.

## Effective/equivalent resistance of resistors in series
According to Kirchhoff&amp;#39;s Voltage Law, voltage is additive along a loop (yes, for resistors in series):
{{&amp;lt;eq&amp;gt;}}
V_T=V_1+V_2+V_3
{{&amp;lt;/eq&amp;gt;}}
Current …</description></item><item><title>Thermistors</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/thermistors/</link><pubDate>Wed, 05 Mar 2025 17:16:03 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/thermistors/</guid><description>
A *thermometric property* is a property of an object, substance or system that varies with temperature. It can thus be used to measure temperature. A **thermistor** is a semiconductor whose resistance varies with/is dependent on temperature. The symbol used to represent a thermistor is:
{{&amp;lt;optimg src=&amp;#34;thermistor-symbol.png&amp;#34; caption=&amp;#34;IEC symbol used to represent a thermistor in circuit diagrams&amp;#34;&amp;gt;}}

It&amp;#39;s basically a resistor with a weird line through it. Here is what an actual thermistor …</description></item><item><title>Ohmic and Non-Ohmic Devices</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/ohmic-and-non-ohmic-devices/</link><pubDate>Wed, 05 Mar 2025 17:08:10 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/ohmic-and-non-ohmic-devices/</guid><description>
Not all electrical devices follow Ohm&amp;#39;s Law. These exceptions are referred to as *non-ohmic devices*. Recall that Ohm&amp;#39;s Law states that current flowing through a device is directly proportional to the voltage across its end, provided that temperature remains constant:
{{&amp;lt;eq&amp;gt;}}
V&amp;amp;\propto I
V&amp;amp;=IR
{{&amp;lt;/eq&amp;gt;}}

This means that if we observe the **I-V characteristics** (from the graph of current plotted against voltage), we will see for ohmic devices that the gradient will be constant. This …</description></item><item><title>The Wheatstone Bridge</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/wheatstone-bridge/</link><pubDate>Fri, 28 Feb 2025 17:18:34 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/wheatstone-bridge/</guid><description>
This is a device that can be used to find the resistance of a 4th resistor, given the resistance of 3 other resistors. It works by the same principle as the [potential divider](../potential-divider).

It can be thought of as two potential dividers with the same $\frac{V_1}{V}$ ratio. This ratio is only the same *when the galvanometer shows a zero deflection*. Consider the diagram:
{{&amp;lt;optimg src=&amp;#34;wheatstone-bridge.png&amp;#34; caption=&amp;#34;Diagram of a Wheatstone bridge&amp;#34;&amp;gt;}}

## The metre bridge
This …</description></item><item><title>Potential Divider</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/potential-divider/</link><pubDate>Fri, 28 Feb 2025 17:18:21 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/potential-divider/</guid><description>
This device can split a larger potential, $V$ e.g. $9V$ into smaller, more useful potentials e.g. $1.5V$. Consider the two resistors, $R_1$ and $R_2$ in series with $V$ applied across them:

{{&amp;lt;optimg src=&amp;#34;potential-divider.png&amp;#34;&amp;gt;}}

We know that due to conservation of charge, the same current flows through each of the resistors thus:
{{&amp;lt;eq&amp;gt;}}
I=\frac{V_1}{R_1}
I=\frac{V_2}{R_2}
{{&amp;lt;/eq&amp;gt;}}

That same current also flows through the combination of the two resistors, $R_T$:
{{&amp;lt;eq&amp;gt;}} …</description></item><item><title>Internal Resistance</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/internal-resistance/</link><pubDate>Fri, 28 Feb 2025 17:17:19 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/internal-resistance/</guid><description>
When we represent a simple circuit, we usually assume that the resistance of the battery is zero or negligible. In real life, of course, this is not the case. A reliable way of thinking about this is that we can represent the battery as a cell (the e.m.f. with no resistance) and a resistor encased in an outer shell:

{{&amp;lt;optimg src=&amp;#34;internal-resistance-rep.png&amp;#34;&amp;gt;}}

The resistance of this imaginary resistor is referred to as **internal resistance ($r$)**.

## How e.m.f. and internal …</description></item><item><title>Ohm's Law Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/ohm-s-law-lab/</link><pubDate>Wed, 26 Feb 2025 19:53:44 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/ohm-s-law-lab/</guid><description>
## Theory
Ohm&amp;#39;s Law states that the current flowing through a conductor is directly proportional to the voltage across its ends, given that temperature remains constant. It is represented by the equation:

{{&amp;lt;eq&amp;gt;}}
V=IR
{{&amp;lt;/eq&amp;gt;}}

This means that resistance is simply the ratio of the voltage applied to the current flowing through the resistor/conductor:

$$R=\frac{V}{I}$$

Thus we can determine the resistance of a device in a circuit by varying the voltage applied to it and …</description></item><item><title>How to Make Fast Websites</title><link>https://chickenfrybytes.com/learn/university/computer-science/web-development/how-to-make-fast-websites/</link><pubDate>Thu, 13 Feb 2025 07:17:05 -0500</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/web-development/how-to-make-fast-websites/</guid><description>
In today&amp;#39;s climate, we have the internet being dominated by WordPress and other CMS&amp;#39;s. It&amp;#39;s high time we addressed some of the bad habits web devs get into when making websites.

Although we do have the infrastructure to handle large websites with high traffic volumes, it is a waste of energy, and thus bad for the environment, to continue increasing the load demand by spinning up more bloated websites.

Here is how we can help the internet become a better place for everyone.

## Make …</description></item><item><title>Radioactivity Coin Toss Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/the-physics-of-the-atom/radioactivity-coin-toss-lab/</link><pubDate>Sat, 01 Feb 2025 18:35:40 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/the-physics-of-the-atom/radioactivity-coin-toss-lab/</guid><description>
The following lab can be replicated in person using 100 coins.

## Theory
Radioactive decay is a spontaneous process which occurs in certain substances due to their nuclear instability. These substances produce radioactive emissions in the form of alpha particles, beta particles and gamma rays.

The half-life ($t_{\frac12}$) of a radioactive substance is the time taken for its mass, and by extension its activity, to drop to half of its initial value. Provided an initial mass, $m_i$ the …</description></item><item><title>Resistance</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/resistance/</link><pubDate>Fri, 31 Jan 2025 09:12:32 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/resistance/</guid><description>
Electrical resistance is the tendency of a material to oppose the flow of an electric current. We use the symbol, $R$ to represent resistance. The SI unit is the **Ohm** ($\Omega$).

## Ohm&amp;#39;s Law
This states that the current flowing through a conductor is directly proportional to the voltage across its ends, given that the temperature remains constant. This proportionality can be represented as:

$$V\propto I$$

By introducing the constant of proportionality, $R$, we get:
$$V=IR$$ …</description></item><item><title>Circuits and Components</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/circuits-and-components/</link><pubDate>Fri, 31 Jan 2025 08:54:38 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/circuits-and-components/</guid><description>
A circuit consists of four basic types of components:
- **source** to add energy to the circuit *e.g. battery*
- **load** to use this energy *e.g. lamp, heating coil, motor, resistor*
- **conductor** to connect the source to the load *e.g. wires*
- **control** to restrict the connection when desired *e.g. switch*

A circuit diagram is a simplified graphical representation of an electrical circuit. These diagrams show how components in a circuit are connected relative to each other but …</description></item><item><title>Electrical Quantities</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/electrical-quantities/</link><pubDate>Wed, 29 Jan 2025 09:16:40 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/electrical-quantities/</guid><description>
These are the physical quantities associated with electricity:
- Charge, $Q$
- Current, $I$
- Voltage, $V$
- Power, $P$
- Energy, $E$

## The cause of current flow
In order **for a current to be present**, *electrons or other charge carriers must be moving*. This movement is achieved by what is called an **electromotive force (emf)**. An electromotive force is the difference in electric potential which causes charge to move. It is the energy ($E$) supplied per unit charge ($Q$) flowing …</description></item><item><title>Direct and Alternating Current</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/direct-and-alternating-current/</link><pubDate>Wed, 29 Jan 2025 07:55:09 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/direct-and-alternating-current/</guid><description>
For direct current, the charge flows **in a single direction** (the polarity of the power source remains the same). For alternating current, the *direction is reversed at regular intervals* (the polarity of the power source switches periodically).
</description></item><item><title>Current Electricity</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/current-electricity/</link><pubDate>Wed, 29 Jan 2025 07:51:43 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/current-electricity/</guid><description>
This is the continuous flow of charge around a circuit. *Current* can be defined as the amount of charge which passes through a point over a given time.
&amp;gt;Recall that current is one of the seven(7) fundamental quantities and is measured in **amperes(A)**.

Current is thus given by the formula:
{{&amp;lt;eq&amp;gt;}}
current(I)=\frac{charge(Q)}{time(t)}
{{&amp;lt;/eq&amp;gt;}}
The ampere is therefore equivalent to 1 coulomb of charge passing a certain point in a circuit in 1 second:
{{&amp;lt;eq&amp;gt;}}
1\ A=\frac{1\ C}{1\ …</description></item><item><title>Kirchhoff's Current and Voltage Laws</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/kirchhoffs-laws/</link><pubDate>Fri, 17 Jan 2025 16:03:34 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/kirchhoffs-laws/</guid><description>
Because series circuits involve only one path through current can flow, the same current flows through each component:
{{&amp;lt;eq&amp;gt;}}
I_T=I_1=I_2=I_3
{{&amp;lt;/eq&amp;gt;}}

&amp;gt;**Kirchhoff&amp;#39;s Voltage Law** states that the sum of voltages (potential differences and electromotive forces) in any loop in a circuit is zero.
{{&amp;lt;eq&amp;gt;}}
V_T=V_1+V_2+V_3
{{&amp;lt;/eq&amp;gt;}}

In a parallel circuit, the voltage across each branch is the same:
{{&amp;lt;eq&amp;gt;}}
V_T=V_1=V_2=V_3
{{&amp;lt;/eq&amp;gt;}}

&amp;gt;**Kirchhoff&amp;#39;s Current Law** states that the …</description></item><item><title>Newton's Law of Universal Gravitation</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/newton-law-of-gravitation/</link><pubDate>Thu, 16 Jan 2025 10:28:22 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/newton-law-of-gravitation/</guid><description>
This law states that the attractive force between two bodies is directly proportional to the product of the their two masses ($m_1\times m_2$) and inversely proportional to the square of their distance apart ($r^2$).

This law can be written as a proportionality:
{{&amp;lt;eq&amp;gt;}}
F\propto \frac{m_1m_2}{r^2}
{{&amp;lt;/eq&amp;gt;}}
Introducing a constant of proportionality, $G$, known as the gravitational constant, we get:
{{&amp;lt;eq&amp;gt;}}
F_g= \frac{Gm_1m_2}{r^2}
{{&amp;lt;/eq&amp;gt;}}

&amp;gt;The value of $G$ is $6.67\times …</description></item><item><title>Other Conditional Propositions</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/other-conditional-propositions/</link><pubDate>Mon, 13 Jan 2025 07:35:12 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/other-conditional-propositions/</guid><description>
There are some noteworthy variations of the implication:
- Converse
- Inverse
- Contrapositive

## Converse
This is the implication which results from us **swapping the antecedent and the conclusion** for the original implication. For example, given the implication $p\implies q$, the converse will be $q\implies p$. Below is the truth table showing the converse of an implication. The original implication is included in the table for you to compare and appreciate the differences in the …</description></item><item><title>Propositions</title><link>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/propositions/</link><pubDate>Mon, 13 Jan 2025 04:26:40 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/pure-mathematics-unit-1/module-1/propositions/</guid><description>
A statement is a declaration or a question whose truth value may or may not be evaluated. Some examples are:
- Tuesday is the day after Monday
- $x+2=5$
- What is your name?

Out of these statements, only the first is a proposition. A proposition is *a statement whose truth value can be evaluated*.

The second statement is not a proposition as we do not know the value of $x$ and thus cannot say whether the statement is true or false. The third is not a proposition because it is a …</description></item><item><title>Creating CLI Tools</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/creating-cli-tools/</link><pubDate>Sun, 12 Jan 2025 14:02:05 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/creating-cli-tools/</guid><description>
We can use C in order to create command line interface (CLI) tools. These are tools whose main mode of interaction is characterized by the user inputting commands (usually in the format **verb** *adverb1* *adverb2* ...).

## Passing CLI arguments
The main function can be used without passing any arguments into it but it can also be used in a certain way in order to access the arguments passed into the program via the command line:

```C
int main(int argc,char** argv){
 return 0;
} …</description></item><item><title>Math Functions</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/math-functions/</link><pubDate>Fri, 29 Nov 2024 05:30:56 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/math-functions/</guid><description>
There are many math functions available to us via C header files:
- **sin(*angle*)** for finding the sine of an *angle* in radians
- **cos(*angle*)** for finding the cosine of an *angle* in radians
- **tan(*angle*)** for finding the tangent of an *angle* in radians
- **abs(*number*)** to get the absolute value (modulus) of a *number*
- **floor(*number*)** for rounding a *number* downwards
- **ceil(*number*)** for rounding a *number* upwards
- **pow(*base*,*exponent*)** for raising a …</description></item><item><title>Applications of Circular Motion</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/applications-of-circular-motion/</link><pubDate>Wed, 27 Nov 2024 15:32:16 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/applications-of-circular-motion/</guid><description>
It is important to remember that the *centripetal force* is always the **net force directed towards the center of the circle**:
$$F_{net}=\frac{mv^2}{r}$$

## Horizontal circles
When an object revolves in a circular path around a point because of a force directed towards that point (the center of that circular path) and the circle is horizontal, the tension in the string keeps the object from flying off in any direction.
{{&amp;lt;optimg src=&amp;#34;/img/phys/cape/horizontal-circles.png&amp;#34; bg=&amp;#34;white&amp;#34;&amp;gt;}} …</description></item><item><title>Circular Motion</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/circular-motion/</link><pubDate>Wed, 27 Nov 2024 10:07:35 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/circular-motion/</guid><description>
For CSEC Physics and this section of CAPE Physics Unit 1 so far, we have been studying linear motion. You will find that most concepts in linear motion have an equivalent in circular motion - the study of motion along curves.

## Angular velocity ($\omega$)
This is known as angular frequency. It is the rate of change of angular displacement($\theta$):
$$\omega = \frac{\theta}{t}$$

Recall that the arc length($s$) of a circle when the angle is given in radians is:
$$s=\theta r$$

If we …</description></item><item><title>Variadic Functions</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/variadic-functions/</link><pubDate>Wed, 20 Nov 2024 14:30:11 +0000</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/variadic-functions/</guid><description>
These are functions which accept a variable number of arguments. *printf* and *scanf* are variadic functions. These functions are most useful if we do not know how many values will be passed to the function at compile time.

We use the **stdarg.h** header file to access the macros and functions needed to meaningfully interact with variadic functions.

Here is an example of a function used to find the sum of its arguments:

{{&amp;lt;code &amp;#34;variadic-sum-function.c&amp;#34;&amp;gt;}}

We use the *va_start* …</description></item><item><title>The Ternary Operator</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/the-ternary-operator/</link><pubDate>Sat, 16 Nov 2024 16:25:16 -0500</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/the-ternary-operator/</guid><description>
Sometimes we will want to set the value of a variable based on if a condition is fulfilled. In the example below, the value of the variable *is_adult* is set to **1** if the person is at least 18 otherwise it must be set to **0**:

{{&amp;lt;code &amp;#34;without-ternary.c&amp;#34;&amp;gt;}}

This can be condensed using the ternary operator. The basic format is:

```C
datatype variable = condition?value_when_true:value_when_false;
```

Our code above can be refactored to give:

{{&amp;lt;code &amp;#34;with-ternary.c&amp;#34;&amp;gt;}} …</description></item><item><title>Multiples</title><link>https://chickenfrybytes.com/learn/csec/general-mathematics/section-1/multiples/</link><pubDate>Thu, 07 Nov 2024 07:18:23 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/general-mathematics/section-1/multiples/</guid><description>
A multiple is a number that can be divided by another number exactly.

## Lowest common multiple (LCM)
This is the smallest number that can be divided by a list of numbers. For example, the LCM of 5 and 8 is 40 because it is the smallest number that can be divided by 5 and 8.

## How to find the LCM of two or more numbers</description></item><item><title>Factors</title><link>https://chickenfrybytes.com/learn/csec/general-mathematics/section-1/factors/</link><pubDate>Thu, 07 Nov 2024 07:18:08 -0500</pubDate><guid>https://chickenfrybytes.com/learn/csec/general-mathematics/section-1/factors/</guid><description>
A factor is number that can divide another number without leaving a remainder. For example, the factors of $8$ are $1$,$2$,$4$ and $8$ itself.

{{&amp;lt;mcq&amp;gt;}}
Which of the following is a factor of 12?
3|24|60|-24
Which is not a factor of 24?
-14|1|3|12
{{&amp;lt;/mcq&amp;gt;}}


## Highest common factor (HCF)
This is the largest number that can divide a list of numbers exactly. It is also referred to as the greatest common divisor (GCD).

### Finding the HCF of two numbers
We can use a table method …</description></item><item><title>Newton's Laws of Motion and Linear Momentum</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/newton-laws-of-motion-and-linear-momentum/</link><pubDate>Fri, 01 Nov 2024 20:06:21 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/newton-laws-of-motion-and-linear-momentum/</guid><description>
Newton&amp;#39;s three(3) laws of motion are as follows:

## 1st law (the law of inertia)
*A body in motion, or at rest, remains in its state of motion or rest, unless acted upon by an external unbalanced force.* Bodies with more mass are more resistant to changes in motion thus mass is a direct measure of a body&amp;#39;s inertia (its ability to resist changes in motion).

The same force that causes a small change in motion for a heavy object (e.g. a boulder) will cause a large change in motion for a …</description></item><item><title>Using Structs With File Operations</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/files/using-structs-with-file-operations/</link><pubDate>Mon, 21 Oct 2024 17:05:00 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/files/using-structs-with-file-operations/</guid><description>
Structs are great when organizing information in your program. The only issue is that when your program ends, the data you store in those sweet sweet structs also disappears. Because we use files in order to achieve data persistence, we can use file operations to save structs for later use. Pretty neat!

## Fwrite
This function accepts $4$ arguments:
- A pointer to the data to be written e.g. *&amp;amp;total*, *post_data*
- The size of the data to be written e.g. *sizeof(int)*, *sizeof(Post)*
- …</description></item><item><title>Structs in C</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/files/structs-in-c/</link><pubDate>Mon, 21 Oct 2024 16:48:43 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/files/structs-in-c/</guid><description>
Structs are a way for us to group related data together in C. They can be used to make our code much more readable and relate entities in the code to more familiar objects.

## Defining a struct
To define a struct, we give it a name (Person) and member variables (name, age and height):

```C
struct Person {
 char name[100];
 int age;
 float height;
};
```

This is now a new custom datatype we can use. In the same way that in declaring a variable we would specify the …</description></item><item><title>Vim Motions for Writers</title><link>https://chickenfrybytes.com/learn/university/computer-science/efficiency/vim-motions-for-writers/</link><pubDate>Sun, 20 Oct 2024 19:52:46 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/efficiency/vim-motions-for-writers/</guid><description>
I do wonder why more writers are not using Vim as their daily editor. As a piece of software that has existed since the 1990s, Vim has created an arms race for human beings who have deemed that the only correct way of writing text is by doing it at break-neck speeds.

The ability to manipulate text with insane levels of efficiency might have been one of those triumphs of our species that has flown over most heads in the past few decades. Story-telling is central to humanity and thus how we …</description></item><item><title>File Operations</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/files/file-operations/</link><pubDate>Fri, 18 Oct 2024 20:44:52 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/files/file-operations/</guid><description>
{{&amp;lt;mcq&amp;gt;}}
Why do you think we need to be able to access files in C?
To store data after the program has finished running|To make our code look fancy when people try to read it|To flex on our friends|To repeat a section of code for a specific number of times
{{&amp;lt;/mcq&amp;gt;}}

## File pointers
In C, we need to create a pointer to the file we want to interact with. The **fopen()** helps us
to create this file pointer. It accepts two arguments -
the path to the file we want to use and the …</description></item><item><title>Generating Truth Tables</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/generating-truth-tables/</link><pubDate>Fri, 18 Oct 2024 20:35:37 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/generating-truth-tables/</guid><description>
We can use C&amp;#39;s built-in logical operators for **NOT**, **OR** and **AND** in order to generate truth tables for
compound logical statements. An **implication** is logically equivalent to taking the negation
of the first proposition (the *hypothesis/antecedent*) OR the second (the *consequent/conclusion/result*):

$$p\implies q\equiv \neg p\lor q$$

&amp;gt; Two propositions are **logically equivalent** when their respective truth values are always the same.

We can thus write functions to …</description></item><item><title>Bitwise Operators</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/bitwise-operators/</link><pubDate>Fri, 18 Oct 2024 20:33:42 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/bitwise-operators/</guid><description>
There are six (6) bitwise operators in C:
- Bitwise NOT/complement (**~**)
- Bitwise AND (**&amp;amp;**)
- Bitwise OR (**|**)
- Bitwise XOR (**^**)
- Left shift (**&amp;lt;&amp;lt;**)
- Right shift (**&amp;gt;&amp;gt;**)

## Bit shifting
We can use the *&amp;lt;&amp;lt;* and *&amp;gt;&amp;gt;* operators to *bit shift* a number. Left shifting a number by 1 digit is the same
as multiplying that number by 2. Right shifting the number by 1 digit is the same as an integer division by 2
(dividing by 2 and rounding the result downwards).

We can use …</description></item><item><title>Equation of a Straight Line</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/equation-of-a-straight-line/</link><pubDate>Fri, 18 Oct 2024 20:29:07 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/equation-of-a-straight-line/</guid><description>
Any straight line can be written in the standard form:
$$y=mx+c$$

The gradient, $m$ is given by the formula:
$$m=\frac{y_2-y_1}{x_2-x_1}$$

The y-intercept, $c$ can be found by substituting the gradient and any of the points
(in this case we use $(x_1,y_1)$) into the standard form of the line equation:

{{&amp;lt;eq&amp;gt;}}
y_1&amp;amp;=mx_1+c
\therefore c&amp;amp;=y_1-mx_1
{{&amp;lt;/eq&amp;gt;}}

The following code snippet shows how we can replicate this in C:
{{&amp;lt;code …</description></item><item><title>Converting Between Degrees and Radians</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/converting-between-degrees-and-radians/</link><pubDate>Fri, 18 Oct 2024 20:26:01 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/math/converting-between-degrees-and-radians/</guid><description>
In order to convert degrees to radians, multiply the angle in degrees by $\pi$ and divide by $180\degree$:

$$45\degree = 45\degree \times \frac{\pi}{180\degree} \\
=\frac{\pi}{4}
$$

Take for example the code:

{{&amp;lt;code &amp;#34;degrees-to-radians.c&amp;#34;&amp;gt;}}

Conversely, we can convert from radians back to degrees by multiplying by $180\degree$ and dividing by $\pi$:
$$\frac{\pi}{3}=\frac{\pi}{3}\times \frac{180\degree}{\pi}=60\degree$$

#### Challenge
Convert the following angles to radians: …</description></item><item><title>Functions as Modules</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/functions-as-modules/</link><pubDate>Fri, 18 Oct 2024 18:46:14 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/functions-as-modules/</guid><description>
In C, we use functions as the basic unit of modular design. Modular design is the practice of designing a system in *modules*. A module is any entity with an *interface* and an **implementation**. The interface provides an abstraction (a simplified view of an entity which omits unimportant details) of the module.

&amp;gt;An interface is a contract/intersection between the system and the environment.
Credits: [Robert Elder](https://blog.robertelder.org)

Functions act as modules in C. The …</description></item><item><title>Functions Part 2</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/functions-part-2/</link><pubDate>Fri, 18 Oct 2024 18:44:38 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/functions-part-2/</guid><description>
We continue by learning about functions with return values and those with both return values and
arguments.

## Functions with return values but no arguments
Here is a function that is used to get the current time:
{{&amp;lt;code &amp;#34;current-time.c&amp;#34;&amp;gt;}}

The function doesn&amp;#39;t accept any values but it does return a string.
*char** is just a way to indicate that the function returns a string. The current time
is the string being returned.

## Functions with both arguments and return values
When …</description></item><item><title>Functions</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/functions/</link><pubDate>Fri, 18 Oct 2024 18:38:25 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/functions/functions/</guid><description>
These are reusable sections of code. They can be built-in or user-defined. Functions
allow us to write code that can be modified in one place and change the effect in
multiple sections. Functions are also sometimes referred to as routines because of
how we use them to group a set of related steps under a single name. A function in C
follows the format:

```c
return_type function_name(argument_1,argument_2,...){
 do_something;
 do_something_else;
 return return_value;
}
``` …</description></item><item><title>String Functions</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/arrays/string-functions/</link><pubDate>Fri, 18 Oct 2024 18:22:10 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/arrays/string-functions/</guid><description>
Strings are a very useful data type. The entire internet thrives on the exchange of information as text data in the form of HTML, CSS and JavaScript files. The browser parses this text in order to know what to display on your computer or phone screen or which files to ask the server for. The very code we write is in text. Our code editor needs to be able to manipulate this text in order to display it in the proper syntax highlighting.

This means that having methods to process strings is …</description></item><item><title>Arrays</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/arrays/arrays/</link><pubDate>Fri, 18 Oct 2024 18:13:05 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/arrays/arrays/</guid><description>
Arrays are a way for us to store many values of a certain datatype under the same name.
Other languages have sets, lists and dictionaries which serve a similar purpose.
This saves us the time and energy of having to create unique names for each value we want to
store.

The format for defining an array is:
~~~c
type array_name[number_of_values];
~~~

Indexing of arrays begin at 0. This means that the following gives us 10 numbers (accessed using numbers[0] to numbers[9]):

```C
int …</description></item><item><title>Break, Continue and Go-To</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/break-continue-and-goto/</link><pubDate>Wed, 16 Oct 2024 12:28:39 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/break-continue-and-goto/</guid><description>
Sometimes we will want to exit a loop or prematurely end the current iteration of the loop. We use **break** to break out of the loop and **continue** to tell the computer to continue the loop from the start of the next iteration.

## The break statement
John wants to tell the computer to exit counting in a sequence when the square of the current counter becomes 9. He writes the following code:
{{&amp;lt;code &amp;#34;break-out-of-loop.c&amp;#34;&amp;gt;}}

## The continue statement
David wants to write a program …</description></item><item><title>Logical and Relational Operators</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/logical-and-relational-operators/</link><pubDate>Mon, 14 Oct 2024 09:05:06 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/logical-and-relational-operators/</guid><description>
We can use these operators to define the conditions under which conditional and iterative constructs are executed. Logical operators are not(**!**), and(**&amp;amp;&amp;amp;**) and or(**||**) and relational operators are greater than(**&amp;gt;**), less than(**&amp;lt;**), greater than or equal to(**&amp;gt;=**), less than or equal to(**&amp;lt;=**), equal to(**==**) and not equal to(**!=**).

## Logical AND example
Martha wants a program to check if her students are between a certain height - students who are too short or too tall …</description></item><item><title>Iterative Constructs</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/iterative-constructs/</link><pubDate>Fri, 11 Oct 2024 07:53:08 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/iterative-constructs/</guid><description>
It is very useful for us to have the ability to tell the computer to run code for a specific number of times or until a condition is violated.

## For loops
This is called a **bounded loop**. This is because we can predict the number of times the loop will run. There is a *sentinel value*, usually $i$ or $n$ that is iterated and checked at the beginning of each iteration. If the condition is not fulfilled then the loop no longer runs.

David wants to list the all of the perfect squares …</description></item><item><title>Conditional Constructs</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/conditional-constructs/</link><pubDate>Fri, 11 Oct 2024 07:52:59 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/conditional-constructs/</guid><description>
Sometimes we want to run code only if specific conditions are satisfied. Conditional statements allow us to do this.

## If statements
With this we can run code if a condition is satisfied. If it is not satisfied then nothing happens. Mr. Jones, a restaurant owner only allows adults into his restaurant. He wants a piece of code that tells the user if they can enter the restaurant based on their age. He comes up with this:

{{&amp;lt;code &amp;#34;check-if-adult.c&amp;#34;&amp;gt;}}

What happens when you input an …</description></item><item><title>Demonstrating That Projectile Motion Is Parabolic</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/demonstrating-that-projectile-motion-is-parabolic/</link><pubDate>Thu, 10 Oct 2024 15:40:36 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/demonstrating-that-projectile-motion-is-parabolic/</guid><description>
Recall that the following do not change for projectile motion, given that the angle of projection($\theta$) is relative to the horizontal:
- $u_x=u\cos{\theta}$
- $u_y=u\sin{\theta}$
- $a_x=0$
- $a_y=-g$
{{&amp;lt;optimg src=&amp;#34;/img/phys/cape/projectile-motion-start.png&amp;#34; bg=&amp;#34;white&amp;#34; padding=&amp;#34;1rem&amp;#34;&amp;gt;}}

Projectile motion can be represented by a parabola of the form:
$$y=ax^2+bx+c$$

We can use the formula for displacement($s$) written in terms of initial velocity($u$), acceleration($a$) and …</description></item><item><title>Projectile Motion</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/projectile-motion/</link><pubDate>Wed, 09 Oct 2024 11:29:20 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/projectile-motion/</guid><description>
Projectile motion is essentially the motion of an object under the effect of gravity. Consider a projectile thrown at an angle of $\theta$ with an initial velocity of $u$:
{{&amp;lt;optimg src=&amp;#34;/img/phys/cape/projectile-motion-start.png&amp;#34; bg=&amp;#34;white&amp;#34; padding=&amp;#34;1rem&amp;#34;&amp;gt;}}

## Values that don&amp;#39;t change
We can resolve the initial velocity of the projectile into two perpendicular components:
{{&amp;lt;eq&amp;gt;}}
u_x&amp;amp;=u\cos{\theta}
u_y&amp;amp;=u\sin{\theta}
{{&amp;lt;/eq&amp;gt;}}
There are no horizontal forces acting and the only …</description></item><item><title>Changing the Flow of the Program</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/changing-the-flow-of-the-program/</link><pubDate>Mon, 07 Oct 2024 07:22:26 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/changing-the-flow-of-the-program/</guid><description>
As we have seen so far, the default **execution flow** (the order in which the code is executed) is *sequential*. This means that the code runs from *top to bottom*.

We can change the execution flow of the program by using **constructs** (control structures). There are two types of constructs:
- Conditional constructs
- Iterative constructs

## Conditional constructs
These are used to execute sections of code when certain conditions are fulfilled. There are 3 conditional constructs in …</description></item><item><title>Setting Up Termux for C Development (Android)</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/setting-up-termux-for-c/</link><pubDate>Thu, 03 Oct 2024 09:54:55 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/setting-up-termux-for-c/</guid><description>
This article is for students who do not have access to a laptop. You can still learn C using an android device (android 1, iphone 0).

## Installing F-Droid
This is a third party app repository and houses the most recent version of Termux. Download the latest version of the F-Droid apk [using this link](https://f-droid.org/en/packages/org.fdroid.fdroid/).

## Installing Termux
Open F-Droid and search &amp;#34;Termux&amp;#34;. Download the **Termux** and **Termux Styling** apps from the list. You will …</description></item><item><title>Accepting User Input</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/accepting-user-input/</link><pubDate>Tue, 01 Oct 2024 12:35:26 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/accepting-user-input/</guid><description>
Notice how we have only been hard-coding values into our program. Often times we will want to have the user input these values. In C, we can use the function *scanf()* to accept values from the user.
There are other functions, some of which we will address later on.

The basic format for using scanf() is:
```c
scanf(format_string,address_1,address_2,...);
```

Take for example asking the user for their age:
{{&amp;lt;code &amp;#34;asking-for-age.c&amp;#34;&amp;gt;}}

## The ampersand, &amp;amp;
We use the **ampersand …</description></item><item><title>Doing Calculations in C</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/doing-calculations-in-c/</link><pubDate>Sat, 28 Sep 2024 17:18:27 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/doing-calculations-in-c/</guid><description>
Now that we know how to ask the computer for space to store values, we can do some math! Consider the following code:

{{&amp;lt;code &amp;#34;bmi.c&amp;#34;&amp;gt;}}

Describe what is being done in each step. C is a language hence it is important that we learn to read it.

&amp;gt;Recall the formula for BMI is
$$\text{BMI}=\frac{\text{mass}}{\text{height}^2}$$

## Right goes into left
In step 3, notice that we do not simply store a value but rather the result of a calculation (dividing mass by the square of height). …</description></item><item><title>Variables and Data Types</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/variables-and-data-types/</link><pubDate>Wed, 18 Sep 2024 22:15:00 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/variables-and-data-types/</guid><description>
A variable is an entity whose value can be changed. In C, each variable has a data type. We choose the data type based on what we want the variable to store.

Some common *primitive* data types in C are:
- integer
- floating point numbers
- character
- double floating point numbers

## Integer
These are positive and negative whole numbers. An integer can be used to store the age of a person:
```C
int age = 13;
printf(&amp;#34;My age is %i\n&amp;#34;,age);
```

&amp;gt;The equal sign (**=**) is …</description></item><item><title>Plotting Linear Graphs From Non-Linear Equations</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/plotting-linear-graphs-from-non-linear/</link><pubDate>Tue, 10 Sep 2024 08:03:55 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/plotting-linear-graphs-from-non-linear/</guid><description>
We can take a non-linear equation and plot in the form of the equation of straight line,

$$\color{limegreen}y\color{black}=\color{slateblue}m\color{red}x\color{black}+c$$

We will have to compromise in some situations by not plotting the variables $x$ and $y$.

## Quadratic equations
Consider the following equation:
$$\color{limegreen}y\color{black}=\color{slateblue}a\color{red}x^2\color{black}+b$$
We will have to plot $y$ on the y-axis and $x^2$ on the x-axis: …</description></item><item><title>Setting Up Visual Studio Code for C Development (Windows)</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/setting-up-vscode-for-c/</link><pubDate>Mon, 09 Sep 2024 17:23:17 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/setting-up-vscode-for-c/</guid><description>
Here are the steps for getting started with basic C development:

## VS Code
Visual Studio Code is the go-to editor for beginner level software engineers. It has a large ecosystem of plugins and themes. Download VS Code [by visiting the official website](https://code.visualstudio.com/download).

Run the installer.

## MinGW
This is a Windows distribution containing the GCC compiler. VS Code does not come with built-in support for C compilation so we use MinGW to get access to the …</description></item><item><title>Physical Quantities</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/physical-quantities/</link><pubDate>Mon, 09 Sep 2024 09:52:02 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-1/module-1/physical-quantities/</guid><description>
Physical quantities are the properties of a solid, liquid or gas which can be measured. The length of a rod and the temperature of the ocean are examples of physical quantities.

We can classify physical quantities in the following ways:
- Fundamental vs. derived quantity
- Scalar vs. vector quantity

## Fundamental vs. derived quantities
There are seven (7) fundamental quantities:
{{&amp;lt;table&amp;gt;}}
| Quantity | Symbol | SI Unit | Abbreviation for unit |
| …</description></item><item><title>Drift Velocity</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/drift-velocity/</link><pubDate>Thu, 05 Sep 2024 11:37:08 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/drift-velocity/</guid><description>
Drift velocity is the average velocity of charged particles (e.g. electrons) in a conductor, caused by an external electric field.

The formula associated with this concept is:
$$I=ne\nu A$$

Where $I$ is current, $n$ is charge density, $e$ is the elementary charge, $\nu$ is drift velocity and $A$ is the cross-sectional area of the conductor.

Notice that the greater the cross-sectional area of the conductor is, the greater the current allowed to flow.</description></item><item><title>EMFs and PDs</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/emfs-and-pds/</link><pubDate>Thu, 05 Sep 2024 08:08:27 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/emfs-and-pds/</guid><description>
Electromotive force and potential difference are mentioned when speaking about voltages in a circuit.

{{&amp;lt;mcq&amp;gt;}}
Electromotive force is associated with devices that add power to the circuit (a.k.a. active devices).
True|False
{{&amp;lt;/mcq&amp;gt;}}

## Electromotive force
Electromotive forces cause the potential difference in the circuit. The electric potential at one terminal is made to be greater compared to the other terminal.

EMF is responsible for taking the charge up the proverbial hill. …</description></item><item><title>Resistivity</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/resistivity/</link><pubDate>Wed, 04 Sep 2024 21:36:54 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/resistivity/</guid><description>
Resistance ($R$) is the tendency of a material to oppose the flow of an electric current. It is an extensive property meaning that its value is dependent on the amount of substance present.

For example, the longer a piece of copper wire is, the more resistance it will have. If we get a shorter or thinner piece of copper wire then we will have to measure its resistance as well.

Extensive properties such as resistance are not very useful when being applied to objects of varying shapes and …</description></item><item><title>Electrical Quantities</title><link>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electrical-quantities/</link><pubDate>Wed, 04 Sep 2024 10:34:43 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/physics-unit-2/module-1/electrical-quantities/</guid><description>
Electrical quantities are the physical quantities (the measurable properties of a system or object) related to the study of electricity. Some important electrical quantities are:
- current ($I$)
- voltage ($V$)
- resistance ($R$)
- power ($P$)

## Charge can be quantized
Elementary charge (a.k.a. quanta) refers to the charge of an electron ($1.6\times 10^{-19}C$). We can thus express the charge on an object in terms of the elementary charge:

$$Q=\pm Ne$$
where $N$ is the number of …</description></item><item><title>Forces</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/forces/</link><pubDate>Thu, 15 Aug 2024 16:41:41 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/forces/</guid><description>
A force can be defined as a push or a pull. It is an **action** which causes a change in **shape**, **size** or **motion** of an object or system. Force is measured in Newtons (N).

## Types of forces
Forces are divided into two groups:
1. *Contact forces* - these require the objects involved in the interaction to be *in physical contact* with each other. Examples include:
	- friction
	- tension
	- air resistance
2. *Non-contact forces* - these can be applied *at a distance*, requiring …</description></item><item><title>Combining Vectors</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/combining-vectors/</link><pubDate>Thu, 15 Aug 2024 16:33:45 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/combining-vectors/</guid><description>
Now that we can split oblique vectors into **horizontal** and **vertical** components it is essential that we understand that **horizontal vectors are independent of vertical vectors**. This statement implies that, for example, an object’s displacement along the x axis cannot give us meaningful information on its displacement along the y axis.

The displacement’s horizontal component is independent of (does not affect/is not affected by) its vertical displacement. Thus if the object is …</description></item><item><title>Scalars and Vectors</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/scalars-and-vectors/</link><pubDate>Thu, 15 Aug 2024 16:16:09 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/scalars-and-vectors/</guid><description>
Physical quantities can be divided into:
1. *Fundamental* quantities vs. *derived* quantities **OR**
2. *Scalar* quantities vs. *vector* quantities

We have looked at the former pair of categories. Now we shall study the latter.

## Scalar quantities
Scalar quantities (or simply **scalars**) are physical quantities which have **magnitude** but **NO direction**. Examples include mass, length, time, distance and speed. When representing a scalar on a diagram, we simply write the …</description></item><item><title>Charging by Conduction</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/charging-by-conduction/</link><pubDate>Wed, 14 Aug 2024 13:16:18 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/charging-by-conduction/</guid><description>
This is when electrons are transferred from one object to another when they come into direct contact with each other. Rubbing one&amp;#39;s feet on a carpet can cause charge to accumulate in the hands if the feet are insulated from the ground

&amp;gt;&amp;lt;b&amp;gt;Simulation featuring John Travoltage&amp;lt;/b&amp;gt;: [John Travoltage](https://phet.colorado.edu/sims/html/john-travoltage/latest/john-travoltage_en.html)


## Charging by induction
- If electrons are exposed to the external electric field of a charged object …</description></item><item><title>Electrostatics</title><link>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/electrostatics/</link><pubDate>Wed, 14 Aug 2024 13:11:46 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/electricity-and-magnetism/electrostatics/</guid><description>
Electricity is the presence or flow of charged particles. There are two types of electricity:
- Static electricity (presence)
- Current electricity (flow)

## What is electric charge?
- Atoms are made up of charged subatomic particles such as electrons (negatively charged) and protons (positively charged). Neutrons have no charge (they are neutral)
- Electric charge is the property of a body that causes it to experience an attractive or repulsive force toward another body
- Because …</description></item><item><title>Image Formation</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/image-formation/</link><pubDate>Fri, 02 Aug 2024 20:30:03 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/image-formation/</guid><description>
We define the following terms:
- *Object distance ($u$)* distance between the object and the center of the lens
- *Image distance ($v$)* distance between the focused image and the center of the lens
- *Focal length ($f$)* distance between the focal point and the center of the lens

When images are formed by a lens, they can be:
1. **Real** or *virtual*
2. **Magnified** or *diminished*
3. **Upright** or *inverted*

## Descriptions for images
*Real image* formed by the actual …</description></item><item><title>Lenses</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/lenses/</link><pubDate>Fri, 02 Aug 2024 20:20:47 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/lenses/</guid><description>
A lens is a section of transparent material which is used to refract light. There are two types of lenses:
- Converging/convex lens - bends light entering it parallel to the principal axis towards the focal point
- Diverging/concave lens - bends light entering it parallel to the principal axis away from the focal point

{{&amp;lt;optimg src=&amp;#34;img/phys/lens-types.png&amp;#34; bg=&amp;#34;white&amp;#34;&amp;gt;}}

Credits: …</description></item><item><title>Total Internal Reflection</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/total-internal-reflection/</link><pubDate>Thu, 01 Aug 2024 23:47:49 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/total-internal-reflection/</guid><description>
*Does refraction work for every possible angle of incidence?* When light moves from a more optically dense material to a less optically dense material, for angles greater than a &amp;lt;b&amp;gt;certain value&amp;lt;/b&amp;gt;, there will be no refracted ray but rather the light will reflect within the first medium.

**Total internal reflection** is the phenomenon in which *light bounces off of the boundary between a more optically dense material and a less optically dense material*. The light reflects within the more …</description></item><item><title>Refraction</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/refraction/</link><pubDate>Thu, 01 Aug 2024 23:37:56 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/refraction/</guid><description>
This is the process whereby *a wave changes direction as it moves from one medium to another*. The incident ray bends as it crosses the boundary between the two media. Note again that the angles are measured relative to the normal line.

{{&amp;lt;optimg src=&amp;#34;img/phys/refraction-in-glass.png&amp;#34;&amp;gt;}}

Credits: [KeyStageWiki](https://keystagewiki.com/index.php/Refraction)

#### Can we tell which direction the light will bend?
- The way in which light bends as it crosses between the two media …</description></item><item><title>Reflection</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/reflection/</link><pubDate>Thu, 01 Aug 2024 23:31:37 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/reflection/</guid><description>
Light travels in a straight line and all wavelengths of light travel through a vacuum at the same speed ($3\times 10 ^8\ ms^{-1}$).
Because light travels in a straight line we have phenomena such as shadows and eclipses and devices such as pinhole cameras

{{&amp;lt;optimg src=&amp;#34;img/phys/pinhole.png&amp;#34;&amp;gt;}}

Credits: [TeachEngineering](https://www.teachengineering.org/activities/view/cub_soundandlight_lesson8_activity1)

{{&amp;lt;optimg src=&amp;#34;img/phys/eclipse.png&amp;#34;&amp;gt;}}

Credits: …</description></item><item><title>Wave-Particle Duality</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-particle-duality/</link><pubDate>Thu, 01 Aug 2024 19:49:28 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-particle-duality/</guid><description>
There are many theories on the nature of light. These conflict in some places and bring forth the idea of **wave-particle duality**. Wave-particle duality is the notion that *light behaves like a wave as well as like a particle*.

&amp;lt;b&amp;gt;Video&amp;lt;/b&amp;gt;:
{{&amp;lt;youtube &amp;#34;h1tflE-L2Dc&amp;#34;&amp;gt;}}

## Huygen&amp;#39;s principle
- Proposed by Christiaan Huygens in 1678
- In summary it states that every point on a wave is a source of secondary wavelets expanding from that point. The new wave front , called the envelope of …</description></item><item><title>Electromagnetic Waves</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/electromagnetic-waves/</link><pubDate>Mon, 29 Jul 2024 20:08:41 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/electromagnetic-waves/</guid><description>
Light, also known as *electromagnetic radiation*, is the set of **transverse waves** which consist of electric and magnetic fields oscillating at *right angles* to the direction in which the wave is travelling.

&amp;lt;b&amp;gt;Video&amp;lt;/b&amp;gt;:
{{&amp;lt;youtube &amp;#34;IRBfpBPELmE&amp;#34;&amp;gt;}}

## The properties of light
- Electromagnetic waves are transverse waves
- They *do not need matter* in order to propagate
- These waves **can propagate in a vacuum**
- *In a vacuum, all wavelengths in the EM spectrum travel at the …</description></item><item><title>Wave Phenomena</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-phenomena/</link><pubDate>Mon, 29 Jul 2024 19:49:17 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-phenomena/</guid><description>
Waves can participate in four ($4$) phenomena:
1. Reflection
2. Refraction
3. Diffraction
4. Interference

## Reflection
Reflection is the bouncing of waves off of a boundary. Sounds waves produce echoes when they bounce off of certain surfaces.
There are two ($2$) types of reflection in the case of light:
1. Diffuse reflection is when light rays are scattered at different angles from an uneven surface
2. Specular reflection is when light rays reflect off of the boundary in a uniform …</description></item><item><title>Sound</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/sound/</link><pubDate>Mon, 29 Jul 2024 19:36:14 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/sound/</guid><description>
A sound wave is a series of alternating *compressions and rarefactions*. Sound waves are longitudinal waves. Sound is a vibration propagated as an acoustic wave through a transmission medium such as a gas, liquid or solid.

## How are sounds produced?
Vibrating objects make sound by first pressing air molecules together and then letting them thin out. When objects vibrate, they push on the air molecules nearest them, setting them in motion. These molecules in turn push on the others around …</description></item><item><title>Wave Parameters</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-parameters/</link><pubDate>Mon, 29 Jul 2024 19:25:36 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-parameters/</guid><description>

A wave can have many properties that may interest us. For example, the frequency of a sound determines how high its pitch is. We can relate certain aspects (such as frequency, wavelength and velocity) of a wave by the following formulae:
$$f=\frac{1}{T}$$
$$v=f\lambda$$
$$v=\frac{\lambda}{T}$$

where
{{&amp;lt;eq&amp;gt;}}
f&amp;amp;\rightarrow frequency
T&amp;amp;\rightarrow period
v&amp;amp;\rightarrow velocity
\lambda&amp;amp;\rightarrow wavelength
{{&amp;lt;/eq&amp;gt;}}
#### Mission details
- Find the frequency of a sound wave which …</description></item><item><title>Parts of a Wave</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/parts-of-a-wave/</link><pubDate>Mon, 29 Jul 2024 19:23:04 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/parts-of-a-wave/</guid><description>
Below is a diagram of the various parts of a wave.

{{&amp;lt;optimg src=&amp;#34;img/phys/wave-parts.png&amp;#34;&amp;gt;}}

Credits: [SECOORA](https://secoora.org/education-outreach/waves/glossary/)

- &amp;lt;b&amp;gt;Crest&amp;lt;/b&amp;gt; - this is the peak or the highest point of the wave
- &amp;lt;b&amp;gt;Trough&amp;lt;/b&amp;gt; - this is the lowest point or the depression of the wave
- &amp;lt;b&amp;gt;Wave front&amp;lt;/b&amp;gt; - this is the imaginary line or surface from which the wave originates; it is the rest position or equilibrium position for the particles
- &amp;lt;b&amp;gt;Amplitude&amp;lt;/b&amp;gt; …</description></item><item><title>Wave Motion</title><link>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-motion/</link><pubDate>Mon, 29 Jul 2024 19:17:52 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/waves-and-optics/wave-motion/</guid><description>
A wave is a disturbance which **transfers energy from one point to another** *without the net displacement of matter*. If we throw a pebble into the center of a lake it creates a disturbance which travels outwards from the center. The kinetic energy of the stone becomes kinetic energy of the water particles which is carried by the neighboring particles to the corners of the lake (**transfer of energy**). When the ripple reaches the corners, the particles come back to their rest position (*no …</description></item><item><title>Radiation</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/radiation/</link><pubDate>Thu, 25 Jul 2024 23:17:32 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/radiation/</guid><description>
- &amp;lt;b&amp;gt;This is the transfer of heat energy via electromagnetic radiation produced by heated surfaces&amp;lt;/b&amp;gt;
- Heat transfer via the process of radiation does not require a medium (solid, liquid or gas) for transfer - *it can happen through a vacuum*

## Emitters and reflectors of radiation
When electromagnetic radiation strikes a surface, that energy is either absorbed or reflected. **Good absorbers** of radiation **are good emitters** of radiation.

&amp;gt;The radiation that is not absorbed, is …</description></item><item><title>Convection</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/convection/</link><pubDate>Thu, 25 Jul 2024 23:16:23 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/convection/</guid><description>
- &amp;lt;b&amp;gt;This form of heat transfer occurs due to differences in temperature causing differences in density&amp;lt;/b&amp;gt;
- Commonly occurs in fluids (liquids and gases)
- By Archimedes Principle, if a material is less dense than the fluid it is suspended in (the material&amp;#39;s relative density less than 1), that material will float in the fluid due to the upthrust on the material being greater than its weight
- In convection, one fluid (the hotter portion) floats in another fluid (the cooler portion)

## …</description></item><item><title>Transfer of Thermal Energy</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/transfer-of-thermal-energy/</link><pubDate>Thu, 25 Jul 2024 23:07:29 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/transfer-of-thermal-energy/</guid><description>
Recall the following:
- &amp;lt;b&amp;gt;Archimedes’ Principle&amp;lt;/b&amp;gt;: When a body is submerged/immersed in a fluid, that body experiences an upthrust equal to the weight of the displaced fluid.
- &amp;lt;b&amp;gt;Heat energy/thermal energy&amp;lt;/b&amp;gt; is the energy possessed by objects, substances and systems due to their differences in temperature.
- In accordance with the kinetic theory of heat, &amp;lt;b&amp;gt;temperature&amp;lt;/b&amp;gt; is a description of the average kinetic energies of the particles within an object, substance or system

Crash …</description></item><item><title>Evaporation vs. Boiling</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/evaporation-vs-boiling/</link><pubDate>Wed, 24 Jul 2024 10:29:57 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/evaporation-vs-boiling/</guid><description></description></item><item><title>Methods for Determining Specific Latent Heat</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/methods-for-determining-specific-latent-heat/</link><pubDate>Wed, 24 Jul 2024 10:27:15 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/methods-for-determining-specific-latent-heat/</guid><description>
The specific latent heat can be determined in a similar manner to that of the electrical method used to find the specific heat capacity.

For example, in melting a piece of ice to get the SLH of fusion ($l_f$):
- Measure the mass $m_i$ of the ice
- Measure the initial temperature $T_i$ of the ice
- Turn on the heater for certain amount of time $t$, enough for all the ice to melt
- Turn off the heater
- Measure the final temperature of the melted ice (water)
- The heat energy changes …</description></item><item><title>Methods for Determining Specific Heat Capacity</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/methods-for-determining-specific-heat-capacity/</link><pubDate>Wed, 24 Jul 2024 10:24:00 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/methods-for-determining-specific-heat-capacity/</guid><description>
Because specific heat capacity and specific latent heat are *intensive properties*, it is important that we have reliable means of measuring their values.

## Determining the specific heat capacity
There are two common ways of finding the SHC of a substance:
- Electrical method
- Method of mixtures

### Electrical method
- Suitable for liquids
- Measure the mass $m$ of the substance
- Measure the initial temperature $T_i$ of the substance
- Immerse a power heater (immersion heater) …</description></item><item><title>Specific Latent Heat</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/specific-latent-heat/</link><pubDate>Wed, 24 Jul 2024 08:37:12 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/specific-latent-heat/</guid><description>
Specific latent heat (symbol $l$) is the **amount of heat energy required** to convert unit mass ($1\ kg$) of a substance *from one phase to another*. It is an *intensive property*. The associated formula is:
{{&amp;lt;eq&amp;gt;}}
Q=ml
{{&amp;lt;/eq&amp;gt;}}
Thus:
{{&amp;lt;eq&amp;gt;}}
l=\frac{Q}{m}
{{&amp;lt;/eq&amp;gt;}}

#### Example
It requires $4,600,000\ J$ of energy to convert $2\ kg$ of water to that same mass of steam. Find the specific latent heat of vaporization of water.

&amp;gt;The **SI Unit** for specific latent heat is thus …</description></item><item><title>Specific Heat Capacity</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/specific-heat-capacity/</link><pubDate>Wed, 24 Jul 2024 08:34:38 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/specific-heat-capacity/</guid><description>
These measurements are important when studying the phenomenon of heat in various materials.

## Heat capacity
Heat capacity is the **heat energy required** to raise a substance by unit temperature ($1\ K$). The symbol is $C$. The associated formula is:
{{&amp;lt;eq&amp;gt;}}
Heat\ energy\ (Q)=C\Delta T
{{&amp;lt;/eq&amp;gt;}}
From this we get:
{{&amp;lt;eq&amp;gt;}}
C=\frac{Q}{\Delta T}
{{&amp;lt;/eq&amp;gt;}}

&amp;gt;The **SI Unit** is thus Joules per Kelvin ($JK^{-1}$).

#### Example
Find the heat capacity of a block of copper if it …</description></item><item><title>Explanation of the Gas Laws Using the Kinetic Theory</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/explanation-of-the-gas-laws-using-the-kinetic-theory/</link><pubDate>Wed, 24 Jul 2024 08:27:22 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/explanation-of-the-gas-laws-using-the-kinetic-theory/</guid><description>
The following describes how the various gas laws can be explained by the Kinetic Theory.

## Pressure law
- Pressure is described as the frequency and strength of collisions by the gas particles with the walls of the container
- For a single gas particle trapped in a box which cannot expand (constant volume), the greater the temperature of the gas, the more kinetic energy the particle has
- The greater the kinetic energy, the greater the speed the particle has
- Greater speed implies a …</description></item><item><title>Determining the Value of Absolute Zero</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/determining-the-value-of-absolute-zero/</link><pubDate>Wed, 24 Jul 2024 08:16:47 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/determining-the-value-of-absolute-zero/</guid><description>
We can find a value for absolute zero by doing:
- Vary the temperature of a gas under conditions of fixed pressure and take the respective volumes for each temperature
- Plot a graph of volume versus temperature and construct a best fit line
- Using the best fit line, extrapolate backwards to get the $x$ intercept (the value in degrees Celsius where the volume is zero)

{{&amp;lt;optimg src=&amp;#34;img/phys/finding-abs-zero.png&amp;#34; caption=&amp;#34;Extrapolating backwards to get a value for absolute zero&amp;#34;&amp;gt;}} …</description></item><item><title>General Gas Law</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/general-gas-law/</link><pubDate>Fri, 19 Jul 2024 17:52:50 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/general-gas-law/</guid><description>
From Boyle&amp;#39;s Law:
{{&amp;lt;eq&amp;gt;}}
PV=k_1
{{&amp;lt;/eq&amp;gt;}}

From the Pressure Law:
{{&amp;lt;eq&amp;gt;}}
P=k_2T
{{&amp;lt;/eq&amp;gt;}}

From Charles&amp;#39; Law:
{{&amp;lt;eq&amp;gt;}}
V=k_3T
{{&amp;lt;/eq&amp;gt;}}

Multiplying these equations:
{{&amp;lt;eq&amp;gt;}}
PV\times P\times V&amp;amp;=k_1\times k_2T\times k_3T\\
P^2V^2&amp;amp;=k_1k_2k_3T^2\\
\frac{P^2V^2}{T^2}&amp;amp;=k_1k_2k_3
{{&amp;lt;/eq&amp;gt;}}

Square-rooting both sides:
{{&amp;lt;eq&amp;gt;}}
\sqrt{\frac{P^2V^2}{T^2}}&amp;amp;=\sqrt{k_1k_2k_3}\\
\frac{PV}{T}&amp;amp;=\sqrt{k_1k_2k_3}
{{&amp;lt;/eq&amp;gt;}}

The square-root of the product of three constants is …</description></item><item><title>Pressure Law</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/pressure-law/</link><pubDate>Fri, 19 Jul 2024 17:48:59 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/pressure-law/</guid><description>
- Found by Joseph Louis Gay-Lussac in 1808
- The **pressure** *of a fixed mass of gas* **is directly proportional to** its **absolute temperature** *given that volume remains constant*:

{{&amp;lt;eq&amp;gt;}}
P&amp;amp;\propto T
P&amp;amp;=kT\ OR
\frac{P}{T}&amp;amp;=k
{{&amp;lt;/eq&amp;gt;}}

Thus we can have $\frac{P_1}{T_1}=k$ and $\frac{P_2}{T_2}=k$. Combining these two we get:
{{&amp;lt;eq&amp;gt;}}
\frac{P_1}{T_1}=\frac{P_2}{T_2}
{{&amp;lt;/eq&amp;gt;}}
Where $P_1$ is the pressure associated with the temperature $T_1$ and $P_2$ is associated with …</description></item><item><title>Charles' Law</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/charles-law/</link><pubDate>Fri, 19 Jul 2024 17:28:13 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/charles-law/</guid><description>
- Named after pioneer balloonist Jacques Charles
- The **volume** *of a fixed mass of gas* **is directly proportional to** its **absolute temperature** *given that its pressure is constant*:

{{&amp;lt;eq&amp;gt;}}
V&amp;amp;\propto T
V&amp;amp;=kT\ OR
\frac{V}{T}&amp;amp;=k
{{&amp;lt;/eq&amp;gt;}}

Thus we can have $\frac{V_1}{T_1}=k$ and $\frac{V_2}{T_2}=k$. Combining these two we get:
{{&amp;lt;eq&amp;gt;}}
\frac{V_1}{T_1}=\frac{V_2}{T_2}
{{&amp;lt;/eq&amp;gt;}}
Where $V_1$ and $T_1$ are associated as are $V_2$ and $T_2$.

##### Example
A balloon of …</description></item><item><title>The Gas Laws</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/the-gas-laws/</link><pubDate>Fri, 19 Jul 2024 17:19:29 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/the-gas-laws/</guid><description>
These laws describe the relationships between the physical quantities **pressure**, **volume** and **temperature** as they relate to gases.

## Why Learn the Gas Laws?
- The gas laws tell us how gases behave when subjected to various *pressures* ($P$), made to fit into certain *volumes* ($V$) or kept at specific *absolute temperatures* ($T$)
- Very important when combinations of these situations are considered
- Each law usually keeps one physical quantity constant while varying the …</description></item><item><title>Absolute Temperature Scale</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/absolute-temperature-scale/</link><pubDate>Fri, 19 Jul 2024 17:09:51 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/absolute-temperature-scale/</guid><description>
- This is also known as the *thermodynamic temperature scale*
- The **Kelvin** is the unit for the absolute temperature scale
- $0\degree C$ is equivalent to $273\ K$
- The *distance between two consecutive units on the Kelvin scale* is the same for *two consecutive units on the Celsius scale* e.g. the jump from $1\degree C$ to $3\degree C$ is the same as that from $274\ K$ to $276\ K$

### Converting between Kelvin and degree Celsius
- To convert degrees Celsius to Kelvin simply add …</description></item><item><title>Types of Thermometers</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/types-of-thermometers/</link><pubDate>Fri, 19 Jul 2024 17:02:05 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/types-of-thermometers/</guid><description>
A thermometer is a device which used to *measure temperature*. There are many different kinds of thermometers, some more suitable than others to be used in certain situations.

## Laboratory Thermometer
- Can contain mercury or alcohol
- The temperature range depends on which liquid is used
- For mercury lab thermometers, the range is $-39\degree C\$ to $357\degree C$
- For alcohol lab thermometers, the range is $-115\degree C\$ to $78\degree C$
- We thus wouldn’t use an alcohol …</description></item><item><title>Macroscopic Properties and Phenomena</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/macroscopic-properties-and-phenomena/</link><pubDate>Fri, 19 Jul 2024 16:53:17 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/macroscopic-properties-and-phenomena/</guid><description>
The adjective *macroscopic* implies that we can observe these properties and phenomena without the need for a microscope.

## Temperature
This refers to the *average kinetic energies* (translational, rotational and vibrational) of the particles within an object or system. It is how hot or cold something is. **Absolute temperature** is measured in $Kelvin\ (K)$. Other units used for temperature are:
- Degree Celsius ($\degree C$) aka *degree centigrade*
- Degree Farenheit ($\degree F$) …</description></item><item><title>The Nature of Heat</title><link>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/the-nature-of-heat/</link><pubDate>Fri, 19 Jul 2024 16:48:07 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/thermal-physics-and-kinetic-theory/the-nature-of-heat/</guid><description>
This section focuses on the nature of heat, measuring temperature, the consequences of changes in temperature and the methods of transfer of heat energy.

## What is heat energy?
*Heat energy* is energy which is transferred because of temperature differences between objects. As with any other form of energy, the SI unit is the **Joule(J)**.

{{&amp;lt;youtube &amp;#34; VpiLucwH-AQ&amp;#34;&amp;gt;}}
*Credits*: Crash Course

There have been two noteworthy theories on the nature of heat.

### Caloric Theory of Heat …</description></item><item><title>Work</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/work/</link><pubDate>Wed, 17 Jul 2024 11:21:03 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/work/</guid><description>
This is the **product of** the **force applied** to an object and the **distance the object moves** *in the direction of the force*:
{{&amp;lt;eq&amp;gt;}}
work&amp;amp;=force\times distance
&amp;amp;=Fd
{{&amp;lt;/eq&amp;gt;}}
The unit for work is the **Joule(J)**:
{{&amp;lt;eq&amp;gt;}}
work=Fd\rightarrow\ N\times m\rightarrow Nm\ OR\ J
{{&amp;lt;/eq&amp;gt;}}
It has the same unit as energy since energy is the ability to do work.
Note that the Newton-metre ($Nm$) is comprised of the fundamental units:
{{&amp;lt;eq&amp;gt;}}
Nm\rightarrow kgms^{-2}\times …</description></item><item><title>Energy</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/energy/</link><pubDate>Wed, 17 Jul 2024 11:08:39 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/energy/</guid><description>
Energy is *the ability to do work*. It has the same SI unit as work - **Joules(J)**.
Some forms of energy are:
- gravitational potential
- kinetic
- elastic
- chemical
- electrical
- magnetic
- electromagnetic (light)
- thermal
- nuclear
- sound

## Law of conservation of energy
Energy is neither created nor destroyed but it changes in form.

### Examples of energy conversion
- In an **electric motor**, *electrical energy* from the battery is transformed into *kinetic energy* …</description></item><item><title>Deep Modules and Management of Complexity</title><link>https://chickenfrybytes.com/learn/university/computer-science/modular-design/deep-modules-and-management-of-complexity/</link><pubDate>Wed, 17 Jul 2024 00:29:47 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/modular-design/deep-modules-and-management-of-complexity/</guid><description>

In procedural languages like C, we use functions as the basic unit of modular design. Modular design is the practice of designing a system in *modules*. A module is any entity with an *interface* and an **implementation**. The interface provides an abstraction (a simplified view of an entity which omits unimportant details) of the module.

&amp;gt;An interface is a contract/intersection between the system and the environment.
Credits: [Robert Elder](https://blog.robertelder.org)

Functions act …</description></item><item><title>Linear Momentum Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/linear-momentum-lab/</link><pubDate>Tue, 16 Jul 2024 12:36:02 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/linear-momentum-lab/</guid><description>
## Theory
Momentum ($p$) is a vector quantity which is expressed as the product of the mass and the velocity of an
object.
{{&amp;lt;eq&amp;gt;}}
momentum&amp;amp;=mass\times velocity
p&amp;amp;=m\times v
{{&amp;lt;/eq&amp;gt;}}

*Impulse* can be defined as a **change in momentum of the object**. It is essentially the time-effect of a force.
Think about how a cricketer catches and slows down a ball by relaxing the arms rather than keeping them
rigid. The effect of applying this retarding force over a time interval changes the …</description></item><item><title>Linear Momentum</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/linear-momentum/</link><pubDate>Tue, 16 Jul 2024 12:30:01 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/linear-momentum/</guid><description>
Linear momentum is the product of a body&amp;#39;s mass and its linear velocity:
{{&amp;lt;eq&amp;gt;}}
momentum&amp;amp;=mass\times velocity
p&amp;amp;=mv
{{&amp;lt;/eq&amp;gt;}}

- The more mass the body has, the greater its momentum
- The faster the body is moving, the greater its momentum
- The SI unit is kilogram-metres per second ($kgms^{-1}$):
{{&amp;lt;eq&amp;gt;}}
p&amp;amp;=mv
&amp;amp;\rightarrow kg\times ms^{-1}
&amp;amp;\rightarrow kgms^{-1}
{{&amp;lt;/eq&amp;gt;}}
- Velocity is a vector hence momentum is also a vector
- Because momentum is a vector, when we work …</description></item><item><title>Equilibrium</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/equilibrium/</link><pubDate>Tue, 16 Jul 2024 10:48:50 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/equilibrium/</guid><description>
**Stability** is a measure of *how easily an object will topple over* when a force is applied to it. It refers to the *tendency of a body to return to its original position after it experiences a turning effect*.

For example, a pencil on its tip will easily fall over when pushed (it has low stability) whereas a living room sofa will easily fall back into place as it is lifted at one end (high stability).

## Factors affecting stability
The two factors which determine the stability of an …</description></item><item><title>Levers</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/levers/</link><pubDate>Tue, 16 Jul 2024 10:40:00 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/levers/</guid><description>
A lever is a *simple machine* consisting of a rigid bar (meaning it does not bend) which pivots at a certain point (**pivot/fulcrum**) along its length and by the effect of a force (called the **effort**), it can serve to move an object or overcome another force (referred to as the **load**).

## Types of levers
There are *three(3) types of levers*:
1. **First class** levers have the **fulcrum** in between the load and effort. These can be *force multipliers* or *distance multipliers*
2. …</description></item><item><title>Conversions</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/conversions/</link><pubDate>Mon, 15 Jul 2024 23:26:24 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/conversions/</guid><description>
Recall that when doing standard form, we can shift the decimal point to the left and increase the power of 10. We can also shift the decimal point to the right and decrease the power of 10. Doing these in the opposite order is also valid:
&amp;gt;If we **increase the power** of 10 by 1 then we MUST shift the decimal point **to the left** by 1 digit
&amp;gt;If we **decrease the power** of 10 by 1 then we MUST shift the decimal point **to the right** by 1 digit

The following method of doing conversions …</description></item><item><title>Multiples, Sub-multiples and Standard Form</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/multiples-submultiples-and-standard-form/</link><pubDate>Mon, 15 Jul 2024 22:48:12 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/multiples-submultiples-and-standard-form/</guid><description>
Sometimes we want to represent very large or very small numbers efficiently. We use multiples and sub-multiples in order to avoid having to write too many digits.

## Multiples
These are used to represent large numbers. Below are some commonly used multiples.

{{&amp;lt;table&amp;gt;}}
| Multiple prefix | Symbol | Value | Value expressed as a power of 10 |
| -------- | ------ | ------------- | -------------------------------- |
| Kilo- | k | 1,000 | $10^3$ …</description></item><item><title>Measurements</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/measurements/</link><pubDate>Mon, 15 Jul 2024 22:35:34 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/measurements/</guid><description>
Measurements are essential to our understanding of the physical world. Measuring the value of a variable as the values of other variables change is a central aspect of science.

## Standardized measurements
What if a meter meant different distances for different regions of the world? Would the world record for longest or highest jump or javelin throw be fairly determined?

### Why we need standardized measurements
Without standardized measurements, describing physical quantities to …</description></item><item><title>Physical Quantities</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/physical-quantities/</link><pubDate>Mon, 15 Jul 2024 22:29:11 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/physical-quantities/</guid><description>
A physical quantity is a **property** of a material, substance or system which can be *measured/quantified*. Examples include the **mass** of a ball and the **volume** of a gas.

## Fundamental quantities/Base quantities
These are the physical quantities from which all other physical quantities are derived. According to the International System of Units (SI), there are **seven (7)** fundamental quantities:

{{&amp;lt;table&amp;gt;}}
| Quantity | Symbol | Unit | Abbreviation for unit | …</description></item><item><title>Variables and Relationships</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/variables-and-relationships/</link><pubDate>Mon, 15 Jul 2024 19:20:28 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/variables-and-relationships/</guid><description>
Now that we have studied the various types of variables, we can learn to describe the relationships between variables. There are three(3) types of relationships:
1. **Direct relationship**: If we increase one variable then the other variable increases. If we decrease one, the other decreases.
2. **Inverse relationship**: Increasing one variable decreases the other
3. **No relationship**: Increasing/decreasing one variable shows no noticeable change in the other variable

## What do they …</description></item><item><title>The Scientific Method</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/the-scientific-method/</link><pubDate>Mon, 15 Jul 2024 19:15:28 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/the-scientific-method/</guid><description>
Galileo Galilei is attributed as the father of modern science. The video in the link below details his life and contributions.
{{&amp;lt;youtube &amp;#34;5eMYZCnNALc&amp;#34; &amp;#34;The Biographics Youtube channel&amp;#34;&amp;gt;}}

Galileo&amp;#39;s methodology involved three (3) steps:
1. **Intuition** - observing a certain phenomenon in the natural world and identifying the parts which can be translated into mathematical form
2. **Demonstration** - deductive demonstration by pure mathematics; must be true of similar instances of the …</description></item><item><title>Principle of Moments Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/principle-of-moments-lab/</link><pubDate>Mon, 15 Jul 2024 18:56:01 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/principle-of-moments-lab/</guid><description>
The following lab can be replicated in person by using a metre rule, masses with mass holders and a glass prism to act as the base.

## Theory
The principle of moments states that for a body **in equilibrium**, the *sum of anti-clockwise moments* equals the *sum of clockwise moments*:
{{&amp;lt;eq&amp;gt;}}
\sum ACW\ moments=\sum CW\ moments
{{&amp;lt;/eq&amp;gt;}}
A system can thus be made to be in equilibrium by ensuring that these sums are balanced.

## Aim
To verify the validity of the principle of moments …</description></item><item><title>Moments</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/moments/</link><pubDate>Mon, 15 Jul 2024 18:05:47 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/moments/</guid><description>
The moment of a force is the **turning effect** of that force. It is dependent on:
1. The magnitude and direction of the force
2. The position of the force&amp;#39;s line of action relative to the pivot

The moment of a force is given by
{{&amp;lt;eq&amp;gt;}}
moment=&amp;amp;\text{force}\times\text{perpendicular}
&amp;amp;\text{distance between line}
&amp;amp;\text{of action of force and pivot}
{{&amp;lt;/eq&amp;gt;}}
### Example
James pushes a door at the door knob which is located $0.8\ m$ away from the door&amp;#39;s hinge. If he pushes the door …</description></item><item><title>Hooke's Law Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/hookes-law-lab/</link><pubDate>Mon, 15 Jul 2024 14:19:09 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/hookes-law-lab/</guid><description>
The following lab can be replicated in person by using a metre rule, masses with mass holders and a spring.

## Theory
Hooke&amp;#39;s law states that the deformation of an object is directly proportional to the force applied, and is given by the formula
$$F=kx$$
where the extension ($x$) is
$$x=current\ length-original\ length$$

We can make $x$ the subject of the formula and write it in the form of a straight line equation:
{{&amp;lt;eq&amp;gt;}}
x&amp;amp;=\frac{F}{k} …</description></item><item><title>Hooke's Law</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/hookes-law/</link><pubDate>Mon, 15 Jul 2024 13:53:22 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/hookes-law/</guid><description>
Deformation can be defined as any **change in shape caused by** the **application of a force**. There are 2 types of deformation:
- *Elastic/temporary deformation* - in which the object returns to its original shape after the force is removed
- *Plastic/permanent deformation* - the object does not revert to its original shape. It may remain in the shape it was in when the force was present (as seen in modelling clay) or may revert only partially to the original shape (like an overstretched …</description></item><item><title>Never Nesting</title><link>https://chickenfrybytes.com/learn/university/computer-science/efficiency/never-nesting/</link><pubDate>Wed, 10 Jul 2024 23:16:06 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/efficiency/never-nesting/</guid><description>
This is the practice of preventing code from becoming too long horizontally. When too much
code is nested, the text we need to navigate horizontally grows to be unmanageable.

Two techniques we use to reduce nesting are:
- Extraction
- Inversion

## Extraction
In extraction, we extract a block of code and place it within a function. We then call that function
from where the code block used to be.
{{&amp;lt;code &amp;#34;extraction.c&amp;#34;&amp;gt;}}

## Inversion
In inversion, we write *guard clauses* …</description></item><item><title>Simple Pendulum Lab</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/simple-pendulum-lab/</link><pubDate>Mon, 08 Jul 2024 19:30:43 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/simple-pendulum-lab/</guid><description>
The following lab can be replicated in person by using an eraser as the pendulum bob, string, a ruler and a stopwatch.

## Theory

The period of a simple pendulum is given by the formula:
$$T=2\pi\sqrt{\frac{l}{g}}$$

If we square both sides of this equation, we get the following:
$$\color{limegreen}T^2\color{black}=\color{slateblue}\frac{4\pi^2}{g}\color{red}l\color{black}+0$$

If we compare this to the standard form of the equation of a straight line: …</description></item><item><title>Vim Motions for Web Developers</title><link>https://chickenfrybytes.com/learn/university/computer-science/efficiency/vim-motions-for-web-developers/</link><pubDate>Fri, 05 Jul 2024 20:10:25 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/efficiency/vim-motions-for-web-developers/</guid><description>
There is no doubt that navigating and manipulating text in order to build web pages is much more tedious than typing an essay. Lucky for us, your favourite text editor Vim ships with the right tools for the job - VS Code is fine too once you install the Vim plugin.

Let&amp;#39;s learn some motions to successfully run circles around HTML, CSS and JS. I&amp;#39;ll update this article as more tips come to mind.

## Changing the values of HTML attributes
Let&amp;#39;s say you have the following:
```js
&amp;lt;div …</description></item><item><title>Project NibbleSprouts</title><link>https://chickenfrybytes.com/learn/project-nibblesprouts/</link><pubDate>Thu, 04 Jul 2024 08:25:13 -0400</pubDate><guid>https://chickenfrybytes.com/learn/project-nibblesprouts/</guid><description>
This website theme is meant to be used to create a scalable and reliable educational content website. Fast web pages help students find what they need without much execution overhead. Special thanks to [Luke Smith](https://lukesmith.xyz), [Eric Murphy](https://ericmurphy.xyz), [Robert Elder](https://blog.robertelder.org/) and [Primeagen](https://www.youtube.com/@ThePrimeTimeagen) for the inspiration.

This website theme is:
- fast
- eco-friendly
- reliable
- agile
- Lean
- user-centric …</description></item><item><title>Simple Pendulum</title><link>https://chickenfrybytes.com/learn/csec/physics/mechanics/simple-pendulum/</link><pubDate>Tue, 02 Jul 2024 19:32:47 -0400</pubDate><guid>https://chickenfrybytes.com/learn/csec/physics/mechanics/simple-pendulum/</guid><description>
A simple pendulum is a *heavy mass* attached to a *light inextensible string*. The heavy mass is referred to as the *bob* and we refer to it as heavy because it should contribute the vast majority, if not all, of the mass of the system (consisting of bob and string).

{{&amp;lt;optimg src=&amp;#34;pendulum.jpg&amp;#34; credits=&amp;#34;Unacademy&amp;#34; link=&amp;#34;https://unacademy.com/content/nda/study-material/physics/pendulum/&amp;#34;&amp;gt;}}

## The period of a pendulum
The period of a pendulum is the time taken for it make one complete …</description></item><item><title>Functional and Non-Functional Requirements</title><link>https://chickenfrybytes.com/learn/university/computer-science/software-quality/functional-and-non-functional-requirements/</link><pubDate>Mon, 01 Jul 2024 22:33:35 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/software-quality/functional-and-non-functional-requirements/</guid><description>
There is a difference between working software and good software. What determines
the quality of a software product is the set of **requirements**.

Requirements are the features that a software application or system delivers on.
There are two kinds of requirements:
- functional requirements - these are what the program does.
- non-functional requirements - these dictate the manner in which the program delivers on the functional requirements.

## Functional requirements
Our primary …</description></item><item><title>Symptoms and Causes of Complexity</title><link>https://chickenfrybytes.com/learn/university/computer-science/modular-design/symptoms-and-causes-of-complexity/</link><pubDate>Mon, 01 Jul 2024 22:30:56 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/modular-design/symptoms-and-causes-of-complexity/</guid><description>
This article is based on John Ousterhout&amp;#39;s lessons on software design, specifically his book &amp;#34;A Philosophy
of Software Design&amp;#34;. He speaks on what can cause a system to be complex and what ways complexity can manifest itself.
A software system doesn&amp;#39;t have to be large in order to be complex. It is very much possible to
write a very confusing 100 lines of code. It is also possible to have a code base with 1000&amp;#39;s of lines that
are easy to pick up and manage.

## Causes
There are two (2) …</description></item><item><title>Styles of API's</title><link>https://chickenfrybytes.com/learn/university/computer-science/modular-design/styles-of-apis/</link><pubDate>Mon, 01 Jul 2024 22:28:30 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/modular-design/styles-of-apis/</guid><description>
APIs (Application Programming Interfaces) are the interface across which two applications can communicate with each other.
An API determines the behaviour of the two applications and the means by which they exchange information.
Erik Wilde has a video:
{{&amp;lt;youtube &amp;#34;bWFXGHXo_pY?si=iDv1Smv1cf6Ogzx4&amp;#34; &amp;#34;Erik Wilde&amp;#34;&amp;gt;}}

in which he mentions five (5) styles of APIs:
- Remote Procedure Call (RPC) (aka Tunnel)
- Resource
- Hypermedia
- Query
- Event-based

The design of an API is determined …</description></item><item><title>The Basics of Vim</title><link>https://chickenfrybytes.com/learn/university/computer-science/efficiency/the-basics-of-vim/</link><pubDate>Mon, 01 Jul 2024 22:13:02 -0400</pubDate><guid>https://chickenfrybytes.com/learn/university/computer-science/efficiency/the-basics-of-vim/</guid><description>
Vim can be intimidating to learn at first. I recommend you try out the various commands and see which ones peak your interest. Here is a list of some basic commands in Vim. Vim has four (4) modes:
- Normal mode
- Insert mode
- Visual mode
- Command mode

## Normal mode
The following commands are used in normal mode.

- **v** - Enter visual mode
- **.** - Replay last command
- **J** - Join the next line to the end of the current line
- **Ctrl+w** followed by **j,k,h,l,w** - Switch …</description></item><item><title>Getting Started With C</title><link>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/getting-started-with-c/</link><pubDate>Mon, 01 Jul 2024 17:58:04 -0400</pubDate><guid>https://chickenfrybytes.com/learn/cape/computer-science-unit-1/module-3/getting-started-with-c/</guid><description>
This is the start of the lessons on the C programming language. C is an imperative, compiled, statically-typed, portable language.

- *Imperative*: we tell the computer how to accomplish a goal; we give it orders
- *Compiled*: the computer translates the entire code into an executable/binary code which the machine can then understand
- *Statically-typed*: we tell the computer exactly what type of data we want it to use instead of having it guess based on how we use the data; this makes our …</description></item></channel></rss>