Skip to content

Wrong results are generating with == operator in case of representation and differentials. #133

@rjnrohit

Description

@rjnrohit

If we take following points and motions:

auto point1  = make_spherical_representation(23.0*bud::degree,21.0*bud::degree,22.0*meter);
auto point2 = make_spherical_representation(23.0*bud::degree,21.0*bud::degree,22.0*centimeter);
auto motion1  =make_spherical_coslat_differential(21.0*bud::degree,22.0*bud::degree,23.1*meter/second);
auto motion2  =make_spherical_coslat_differential(21.0*bud::degree,22.0*bud::degree,23.1*centimeter/second);
cout << boolalpha << (point1 == point2) << endl; 
cout << boolalpha << (motion1 == motion2) << endl;

we are getting this result:

true
true

But expected:

false
false

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