Inclined Plane & Friction API
Inclined-plane and friction statics and dynamics as an API, computed locally and deterministically. The incline endpoint analyses a block on a ramp: from a mass, the slope angle and a coefficient of friction it returns the normal force N = m·g·cosθ, the gravity component along the slope m·g·sinθ, the maximum static friction μ·N, whether the block stays put or slides (it slides when tanθ > μ) and, if it slides, the net force and the acceleration a = g·(sinθ − μ·cosθ). The friction endpoint handles a flat surface: the friction force f = μ·N (the normal force given directly or from a mass), the angle of repose atan(μ), and — given an applied force — whether the object moves and its acceleration. The ramp endpoint gives the force needed to move a load up or down a ramp at constant velocity, F = m·g·(sinθ ± μ·cosθ), the frictionless force, the efficiency and whether the ramp is self-locking. Gravity defaults to 9.80665 m/s² and can be overridden. Everything is computed locally and deterministically, so it is instant and private. Ideal for physics and mechanics-education tools, materials-handling, conveyor and ramp design, and engineering-statics apps. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is inclined-plane forces with friction; for the ideal (frictionless) mechanical advantage of simple machines use a lever API.
api.oanor.com/incline-api