 These variables are usually spatial coordinates and time, but may include momentum components.The most general choice are generalized coordinates which can be any convenient variables characteristic of the physical system.The functions are defined in a Euclidean space in classical mechanics, but are replaced by curved spaces in relativity.