Skip to content

Incorrect results are generating with unit_vector() and magnitude() member functions of differential representations. #125

Open
@rjnrohit

Description

@rjnrohit

User may instantiate a differential object as in the following way:

auto cart_rep_diff = make_cartesian_differential(34.9*meter/second,37.91*meters_per_second,490.1*centimeter/second);

and the generated results are as follows:

cart_rep_diff .magnitude() = 492.801

cart_rep_diff.unit_vector<decltype(cart_rep_diff)>() = Cartesian differential ( 0.0708196 m s^-1 , 0.0769275 m s^-1 , 0.994518 cm s^-1 )

But expected results are:
51.761 m s^-1 in case of magnitude
and for unit_vector is
Cartesian differential ( 0.674253 m s^-1 , 0.732405 m s^-1 , 0.0946852 cm s^-1 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions