Skip to content

Wrong values when multiplication with scalar? #166

@MichielStock

Description

@MichielStock

Unless I completely misunderstand how the error propagation is computed, there seems to be something wrong with the decimal points after the values when multiplying with a constant.

julia> r = 10.0 ± 0.9
10.0 ± 0.9

julia> r^2
100.0 ± 18.0

julia> π * r^2
314.0 ± 57.0

julia> π * r.val^2
314.1592653589793

I don't see why the values would be different, as Measurements should only propagate the errors?

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