Zephyr Scientific Library (zscilib)
Functions
dynamics.h File Reference

API header file for dynamics in zscilib. More...

#include <zsl/zsl.h>

Go to the source code of this file.

Functions

int zsl_phy_dyn_newton (zsl_real_t m, zsl_real_t accel, zsl_real_t *f)
 Calculates the force in newtons that experiences a body based on its mass (m) and acceleration (accel). More...
 
int zsl_phy_dyn_fric (zsl_real_t n, zsl_real_t mu, zsl_real_t *f)
 Calculates the friction force experienced by a body moving in a surface with a friction coefficient 'mu'. More...
 
int zsl_phy_dyn_normal (zsl_real_t m, zsl_real_t theta, zsl_real_t *n)
 Calculates the normal force in newtons exerted by plane inclined 'theta' radians on a body of mass 'm'. More...
 
int zsl_phy_dyn_pendul_period (zsl_real_t l, zsl_real_t *t)
 Calculates an approximation of the period of a simple pendulum with small oscilations, based on its length (l). More...
 
int zsl_phy_dyn_pendul_max_speed (zsl_real_t l, zsl_real_t oi, zsl_real_t *vmax)
 Calculates the maximum speed in meters per second of a simple pendulum based on its length (l) and initial angle (oi). More...
 
int zsl_phy_dyn_tension (zsl_real_t m, zsl_real_t a, zsl_real_t *t)
 Calculates the tension in newtons of a massless tensed rope with a moving object. More...
 
int zsl_phy_dyn_lever (zsl_real_t d1, zsl_real_t f1, zsl_real_t d2, zsl_real_t *f2)
 Calculates the force required to balance a lever, given the force applied to the other end of the lever and the distances between the end of the lever and its fulcrum. More...
 

Detailed Description

API header file for dynamics in zscilib.

This file contains the zscilib dynamics APIs

Definition in file dynamics.h.