Calculating the mean and median of a data set
Calculation of the mean and median of a data set, including methods for calculating the median of continuous data series and grouped data.
Calculating the mean and median of a data set Read More »
Calculation of the mean and median of a data set, including methods for calculating the median of continuous data series and grouped data.
Calculating the mean and median of a data set Read More »
PROBLEM: A force F acts on a stationary object of a mass of 96 g for a duration of 30 milliseconds, causing it to move away from its initial position in a straight line on a frictionless surface. Fig. 1 shows the force as a function of time during that 30 milliseconds. Calculate the velocity of the object at times t = 5 ms, 20 ms, and 35 ms.
Calculating velocity from a force-time graph Read More »
This Python code will open a text file and read its content, which is a table of numbers. The code then sorts the numbers in each row of the table in ascending order, then writes the newly sorted table to a new text file.
Sorting numbers in each row of a table – Python code Read More »
This Java code reads a text file line by line and prints each line on the monitor screen. The reading continues until the end of the file is reached. The file is then closed, and the program stops. If the file cannot be found, an error message will appear, and the program will be terminated.
Reading a text file – Java code Read More »
A Java code for solving a quadratic equation, and checking if the equation is reduced to linear, has no solution, or has infinite solutions.
Java codes for computing the roots of a quadratic equation Read More »
A detailed explanation on how to express cos (5θ) and sin (5θ) in terms of cos (θ) and sin (θ) using De Moivre’s theorem
De Moivre’s Theorem Read More »