nilis24 / physics.h

A header file for c/c++ of the laws of physics
https://discord.gg/AHAqK569Hq
GNU General Public License v3.0
9 stars 18 forks source link
hacktoberfest hacktoberfest2022



physics.h

A c/c++ header file of the laws of physics



Table of Contents



Gravitation

The universal force of attraction acting between all matter.


UniversalGravitationLaw ( mass 1, mass 2, radius)


AccelarationDuetoGravity( mass , radius, G)


GravitationalPotentialPointCharge(mass, radius)


GravitationalPotentialCircularRing(mass, radius, x)


GravitationalPotentialCircularDisc(mass, radius, x, xx)




Dynamics

The study of forces and their effects on motion.



Electricity

The set of physical phenomena associated with the presence and motion of matter that has a property of electric charge.



Energies

The capacity for doing work.



Kinematics

The study of motion of a system of bodies without directly considering the forces or potential fields affecting the motion.



Optics

The branch of physics that studies the behaviour and properties of light.



Constants

Constant NAME Value
G Newtonian constant of gravitation 6.67430(15)×10−11 m3.kg−1⋅s−2
c speed of light in vacuum 299792458 m⋅s−1
h Planck constant 6.62607015×10−34 J⋅Hz−1




Thanks to all contributors!




A Hacktoberfest 2022 Repo