-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect results are generating with unit_vector() and magnitude() member functions of differential representations. #125
Comments
Member functions unit_vector and magnitude need to be removed from header base_differential.hpp |
I have updated base_differential.hpp in #127 |
why is your expected result in m s^-1? it could also be cm s^-1. How to decide that? |
@Gopal-Dahale you can see here
XQuantity . It seems we expect magnitude in units of first coordinate quantity.
|
Well, I am able to convert the units but I had used the functions get_dx(), get_dy(), get_dz() for accessing the units whereas in the magnitude function in base_differential.hpp, cartesian_-differential is represented as a point (no units). Is there a way for me to get the units without using the getter methods as they are specific to different representations(cartesian, spherical etc). |
User may instantiate a differential object as in the following way:
and the generated results are as follows:
But expected results are:
51.761 m s^-1
in case of magnitudeand for unit_vector is
Cartesian differential ( 0.674253 m s^-1 , 0.732405 m s^-1 , 0.0946852 cm s^-1 )
The text was updated successfully, but these errors were encountered: