If you have a 3D vector with elements i, j, k, the cross product calculation is done like this: (jk – kj, ki – ik, ij – ji) if we represent the vector elements as 1, 2, 3, the cross product calculation is done like this: (2(3) – 3(2), 3(1)…

## Memorization

Time to memorize the values on the Unit Circle. I have used these values many times, however, I realized that I have never memorized these values. Well, here we go. I will continue to type until I can type all the values, in terms of π, that appear as we…

## Obedience to Law

I think the greatest advancement comes when we are willing to share everything we have with everyone else. This would be a far greater achievement than any flashy or comfort-producing technology. I believe that our Heavenly Father wants to give us so much more than we currently have, however, there…

## Basic Algebra Exponent Example

3x = 9 3x = 32 Since the bases are the same (both are 3) we can drop the base. x = 2 Replace x with 2 and check. 32 = 3 x 3 = 9

## Algorithmic Errors and the Common Cold

The last few days I have felt like the energy has been drained from my biological system. I realized that I must have the beginnings of the common cold. Interesting how we are able to eradicate all kinds of diseases, however, the common cold, with its seemingly infinite strains, has…

## Robot Solves Rubik’s Cube In Less Than One Second

Rubik’s Cube

## Prime Numbers Between Zero And 1000 (Coded in C)

A prime number is a natural number that can be divided by the numeral one and itself. For example, the natural number 17 is a prime number. 17 can be divided by 1. 17 can be divided by 17. 17 / 1 = 17 17 / 17 = 1 The…

## Use C to Square Numbers 0 to 99

This C code calculates the square of numbers 0 to 99. #include <stdio.h> int main() { int i = 0; for(i = 0; i < 100; i++) { printf(“\n%d X %d = %d”, i, i, i * i); } return 0;…

## The Natural Logarithm function in C

This C code calculates the natural logarithm of a number. The natural logarithm is log base e, often written as ln. ln x = loge x NOTE: This code does not enforce input validation or error checking. #include <stdio.h> #include <math.h> int main() { char userInput[20]; printf(“\nPlease…

## Calculate The Slope of a Line

This simple C program calculates the slope of a line in the first quadrant. #include <stdio.h> int main() { int x1 = 2; int x2 = 6; int y1 = 1; int y2 = 8; float rise = 0; float run = 0; float slope = 0; rise = y2…