Hello, using octave when I evaluate this expression (1+1/x)*x-x, with x = 10^(15) i get as result 1.125, I didn't undesrtood why,(adsbygoogle = window.adsbygoogle || []).push({});

I know that octave show 15 digits in format long so when i evaluate (1+1/x)*x i get 1e15, the last digit is not visible and it is 1, so when i do substraction i get 1.12500000000000.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Evaluating expression (numerical analysis)

Loading...

Similar Threads - Evaluating expression numerical | Date |
---|---|

Using reference angles to evaluate trig function | Jan 12, 2018 |

I Problem when evaluating bounds...Is the result 1 or 0^0? | Nov 13, 2017 |

I Evaluating improper integrals | Mar 20, 2017 |

I Taylor series to evaluate fractional-ordered derivatives | Feb 21, 2017 |

Evaluating expression for e | Jun 6, 2006 |

**Physics Forums - The Fusion of Science and Community**