Question: Calculation error - Vector with fractions and floats

Hi there

Can anyone explain the following calculation error? (The task seems quite simple.)
 

restart

Original - very unintuitive calculation error:

Vector(3, {(1) = 20.09230769, (2) = 32.43076923, (3) = 15.26153846}) = Vector[column](%id = 18446746432715486622)NULL

``

In 1D math it works:

Vector[column](3, [1306./65, 2108./65, 992./65]);

Vector(3, {(1) = 20.09230769, (2) = 32.43076923, (3) = 15.26153846})

(1)

````

Approximate works:

Vector(3, {(1) = 1306/65, (2) = 2108/65, (3) = 992/65})"(->)"Vector[column](%id = 18446746432750076862)

``

Multiplying by 1. works:

Vector(3, {(1) = 20.09230769, (2) = 32.43076923, (3) = 15.26153846}) = Vector[column](%id = 18446746432750171550)NULL

``

 

Download Maple_-_vector_of_fractions_with_floats.mw

Kind regards,

Jens Jacob Thomsen

Please Wait...