Linear Regression is a statistical method used to model the relationship between a scalar response and explanatory variables. It assumes a linear relationship, represented by the equation:
The goal is to find the slope (m) and y-intercept (b) that minimizes the Sum of Squared Errors between the data points and the line. You must adjust m and b to manually find the best fit line for the data points.
A quadratic function produces a U-shaped curve called a parabola. The standard form of the equation is:
The coefficient a controls the direction and width. b and c shift the parabola's position. The vertex (minimum or maximum point) is located at x = -b / (2a).
Use the sliders to see how each coefficient impacts the graph's shape and position.
Heat transfer occurs via three main mechanisms: Conduction (transfer through contact), Convection (transfer through fluid motion), and Radiation (transfer via electromagnetic waves).
This simulation models conduction between two objects. The rate of heat flow is proportional to the Temperature Difference and the Thermal Conductivity of the material.
Watch how quickly the cold block (Blue) reaches thermal equilibrium with the hot block (Red) based on the material's conductivity.
DNA consists of two strands linked by base pairs. The four nitrogenous bases are Adenine (A), Thymine (T), Guanine (G), and Cytosine (C). Base pairing is always specific:
The goal is to determine the complementary strand for a given DNA sequence. This process is essential for DNA replication and transcription.
Complementary Strand:
TACGCATC
Sorting algorithms are fundamental to computer science. They arrange elements of a list in a specified order. Common methods include Bubble Sort, Merge Sort, and Quick Sort.
This challenge visualizes an array of numbers. Your task is to apply an algorithm (Bubble Sort is used here) to arrange the numbers from smallest to largest.
Use the buttons to step through the sorting process and observe how values are swapped until the array is completely sorted.
The Center of Gravity (CoG) is the imaginary point where the total weight of an object is considered to be concentrated. An object is stable only if its CoG is above its base of support.
In a rigid body, the CoG is the weighted average of the positions of all the mass elements.
Click anywhere in the area to add a mass block (Black Dot). The simulation will instantly calculate and display the system's overall Center of Gravity (Red Cross).
The RGB (Red, Green, Blue) model is an additive color system used in digital displays. Additive means that light is mixed: starting with black, adding R, G, and B light creates brighter colors.
The intensity of each color channel is measured from 0 (off) to 255 (full intensity). Equal amounts of all three at 255 produce white.
Adjust the three sliders to see the resulting color mixture. Learn how different levels of light create complex shades.
The Caesar Cipher is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet.
This fixed number is the Shift Key. Mathematically, this is a form of modular arithmetic (e.g., if you shift 'Z' by 1, you wrap around to 'A').
Enter a message and choose a shift value to encrypt it. The key (shift) determines how secure the message is.
Cipher Text:
KHOOR ZRUOG
The ability to convert units is essential in all fields of science and engineering. Conversions rely on knowing the proper conversion factor (ratio) between two units.
For example, to convert from meters (m) to kilometers (km), you use the factor 1000 m = 1 km.
Select the initial unit, enter a value, and select the target unit. The calculator handles common length, mass, and time conversions (e.g., km to miles, kg to lbs, hours to seconds).
Result:
6.21 mi
Simple Harmonic Motion (SHM) is the oscillatory motion of a system where the restoring force is directly proportional to the displacement. A classic example is a mass attached to a spring.
The Period (time for one full cycle) and Frequency (cycles per second) are constant. The motion follows a sine wave pattern.
Adjust the Mass and Spring Constant (k) to see how the period of the oscillation changes. Higher mass slows the motion; stiffer spring (higher k) speeds it up.
Computers operate using the Binary System (base-2), which only uses the digits 0 and 1. Humans typically use the Decimal System (base-10).
Each digit in a binary number represents a power of two: ..., 16, 8, 4, 2, 1. To convert, you multiply the binary digit by its corresponding power of two and sum the results.
Enter an 8-bit binary string (e.g., 10101010) and calculate its decimal equivalent. The maximum value for 8 bits is 255.
Decimal Value:
170
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself (e.g., 2, 3, 5, 7, 11...).
Numbers that are not prime are called composite (e.g., 4, 6, 8, 9, 10...). The number 1 is neither prime nor composite.
Enter an integer to instantly check if it is prime. The algorithm checks for divisibility up to the square root of the number for efficiency.
Result:
17 is a Prime Number.
A simple circuit consists of a power source (Voltage), a component that restricts current (Resistance), and the flow of charge (Current).
These three quantities are related by Ohm's Law: Voltage (V) = Current (I) * Resistance (R).
Adjust the Voltage (V) and Resistance (R) to calculate the resulting Current (I) in the circuit, measured in Amperes.
Calculated Current (I):
3.0 Amperes
The pH scale measures the acidity or basicity of an aqueous solution. It ranges from 0 to 14. A pH of 7 is neutral (pure water), below 7 is acidic, and above 7 is basic (alkaline).
pH is defined as the negative logarithm (base 10) of the hydrogen ion concentration (in moles per liter, M): pH = -log([H+]).
Enter the hydrogen ion concentration, and the calculator will determine the pH and classify the solution.
pH Result:
4.0 (Acidic)
A vector is a quantity that has both magnitude (size) and direction (e.g., velocity, force). Vectors in 2D space are represented by components (x, y).
Vector Addition involves adding the corresponding components: (V1x + V2x, V1y + V2y). The resulting vector is the Resultant Force.
Enter the x and y components for two vectors (V1 and V2). The calculator will find the components and the magnitude of the Resultant Vector (R).
Resultant Vector (R):
R = (2, 6)
Magnitude (|R|):
6.32
Ocean currents are driven by wind, water density differences (temperature and salinity), and topography (the shape of the ocean floor).
1. Wind-Driven Currents: Surface winds push the water. The slider controls speed and direction (positive for East, negative for West).
2. Thermohaline Circulation: Density differences create a "conveyor belt." Cold, dense water sinks at the poles (top), and warm, less-dense water rises at the equator (bottom).
3. Topography: Landmasses and seamounts obstruct and redirect water flow, creating complex gyres and eddies.
Adjust the sliders to see how these forces combine to create large-scale circular currents (gyres).
Stars are classified by their temperature (color) and luminosity (brightness/absolute magnitude). This system is summarized in the H-R Diagram.
The spectral classes, from hottest to coldest, are O, B, A, F, G, K, M. Our Sun is a G-type star.
Select the temperature (color) and brightness of a star to determine its class and what stage of life it is currently in (e.g., Main Sequence, Red Giant, White Dwarf).
Classification:
G2V (Main Sequence)
Volume is the amount of three-dimensional space occupied by an object. Calculating volume depends on the object's shape.
For a Cube/Rectangular Prism, Volume = length x width x height. For a Sphere, Volume = 4/3 π r3.
Select a 3D shape and enter the required dimensions (length, radius, etc.) to calculate its volume. All inputs are assumed to be in the same unit (e.g., cm).
Calculated Volume (units³):
125.00
A Stack is a fundamental data structure that operates on the LIFO (Last-In, First-Out) principle, like a stack of plates. The last item added is the first item to be removed.
Key operations are Push (add an item to the top) and Pop (remove the top item).
Use this simulator to manage a stack of items. Push items onto the stack and see how the Pop operation always retrieves the most recently added item.
Current Stack (Top to Bottom):
Stack size: 3
The Fibonacci sequence, denoted Fn, is an infinite series of numbers where each number after the first two is the sum of the two preceding ones. The sequence starts with F0 = 0 and F1 = 1.
The ratio of consecutive Fibonacci numbers converges to the Golden Ratio (approximately 1.618). This ratio is prevalent in nature, art, and architecture.
Result FN:
55
Sequence (up to N=10):
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55
Friction is a force that opposes motion between surfaces in contact. There are two main types:
Adjust the applied force and surface type to see when the block starts to move and how fast it accelerates.
The Principle of Conservation of Energy states that in an isolated system, the total energy remains constant. It can only be converted from one form to another.
PE = mghKE = 0.5 * mv²Watch how the energy transforms between PE and KE. In a perfect, isolated system, the total mechanical energy (PE + KE) would remain constant.
In reality, energy is gradually lost from the system. This is called energy dissipation. In this simulation, it's caused by forces like air resistance and friction at the pivot. This dissipated energy (often as heat) causes the pendulum to slow down until it comes to rest at its lowest point - the equilibrium state.
The Doppler effect is the change in frequency of a wave in relation to an observer who is moving relative to the wave source. It's why an ambulance siren sounds higher in pitch as it approaches you and lower as it moves away.
This effect applies to all waves, including light, where it's used in astronomy to determine the movement of stars (redshift/blueshift).
A cantilever is a beam anchored at only one end. When a load is applied to the free end, the beam bends. This bending is called deflection.
The amount of deflection depends on the beam's length, its material properties (Modulus of Elasticity, E), its cross-sectional shape (Moment of Inertia, I), and the applied load.
Adjust the parameters to see how they affect the beam's deflection. A longer beam or a heavier load will cause more bending, while a stiffer material will resist it.
A lever is a simple machine consisting of a beam or rigid rod pivoted at a fixed hinge, or fulcrum. It's used to lift heavy loads with less effort.
The principle of the lever is based on balancing torques. The torque from the effort must equal the torque from the load.
Move the fulcrum to see how the effort required to lift the 100kg load changes. Placing the fulcrum closer to the load gives you a greater mechanical advantage.
An inclined plane is a simple machine that reduces the force needed to lift an object. It works by decomposing the force of gravity (mg) into two components:
FN = mg cos(θ)FP = mg sin(θ)The Net Force is the sum of all forces. If the applied force is greater than the forces pulling the block down the slope (parallel force + friction), the net force is positive, and the block accelerates up the ramp.
Notice how a smaller angle (θ) results in a smaller parallel force, making it easier to move the object.
Buoyancy is the upward force exerted by a fluid that opposes the weight of a partially or fully immersed object. This is described by Archimedes' Principle.
An object's fate in a fluid is determined by its density relative to the fluid's density.
Adjust the densities to see this principle in action. Water has a density of 1000 kg/m³.
Inertia is the resistance of any physical object to any change in its state of motion. This is Newton's First Law: an object at rest stays at rest, and an object in motion stays in motion unless acted upon by an external force.
Mass is a measure of inertia. The more mass an object has, the more it resists acceleration when a force is applied.
Adjust the object's mass and apply a constant force. Notice how a larger mass results in a smaller change in velocity (lower acceleration).
Rotational Inertia (or Moment of Inertia, I) is an object's resistance to being spun. It depends not just on the object's mass, but on how that mass is distributed relative to the axis of rotation.
Objects with more mass further from the center are harder to spin. For a constant applied torque (τ), the angular acceleration (α) is given by τ = Iα.
The disk and ring have the same mass and radius. Since the ring's mass is all at the edge, its rotational inertia is higher. Press "Start Race" to see which one accelerates faster!
Newton's Third Law states that for every action, there is an equal and opposite reaction. This means that any force exerted by one object on another is paired with an equal force in the opposite direction from the second object on the first.
While the forces are equal, the resulting accelerations are not, unless the masses are equal. This is described by the formula F = ma.
Adjust the masses and trigger the interaction. Notice how the object with less mass accelerates much more quickly, even though the force is the same for both.
Bernoulli's principle states that for an inviscid flow, an increase in the speed of the fluid occurs simultaneously with a decrease in pressure or a decrease in the fluid's potential energy. This is a statement of the conservation of energy for flowing fluids.
This simulation shows the Venturi effect. As the fluid enters the constricted section of the pipe, it must speed up to maintain a constant flow rate (Continuity Equation: A₁v₁ = A₂v₂).
Adjust the pipe's constriction. Notice how the calculated pressure drops significantly where the velocity is highest, as shown in the values below the simulation.
Refraction is the bending of light as it passes from one medium to another. This happens because light travels at different speeds in different materials, which are characterized by a refractive index (n).
The relationship between the angle of incidence (θ₁) and the angle of refraction (θ₂) is given by Snell's Law:
If light travels from a denser to a less dense medium at a high enough angle, it can be completely reflected. This is called Total Internal Reflection. As light passes through a medium, some of it is also absorbed, reducing its intensity.
A Lithium-Ion battery generates electricity through the movement of lithium ions (Li+) and electrons. It consists of an Anode (typically graphite), a Cathode (e.g., Lithium Cobalt Oxide), and an electrolyte that allows ions to pass through.
Use the buttons to see this process in action. The simulation shows the flow of ions (blue dots) and electrons (yellow dots).