Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16217 > unrolled thread

Re: unser-interface problems using Mathematica as a calculator

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-11-12 05:05 +0000
Last post2013-11-12 05:05 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: unser-interface problems using Mathematica as a calculator Bob Hanlon <hanlonr357@gmail.com> - 2013-11-12 05:05 +0000

#16217 — Re: unser-interface problems using Mathematica as a calculator

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-11-12 05:05 +0000
SubjectRe: unser-interface problems using Mathematica as a calculator
Message-ID<l5scu2$ds3$1@smc.vnet.net>
If you want to see the "true" value rather than a rounded display value
then set preferences to display full machine precision (Mathematica |
Preferences ... | Appearance | Numbers | Formatting | Displayed precision |
Number of digits displayed in output) or use FullForm, InputForm,
Rationalize, or exact numbers.


Note the use of parentheses with either FullForm or InputForm to avoid
including the wrapper in the definion of tv.


(tv = TimeValue[1, 0.04, 3]) // FullForm

1.124864`


(tv = TimeValue[1, 0.04, 3]) // InputForm


1.124864


tv = TimeValue[1, 0.04, 3] // Rationalize


17576/15625


tv = TimeValue[1, 4/100, 3]


17576/15625



Bob Hanlon




On Mon, Nov 11, 2013 at 12:05 AM, Alan <alan.isaac@gmail.com> wrote:

> The example below illustrates why Mathematica's display rules for
> approximate numbers are very confusing for students. Should this be
> considered a user-interface bug? If not, why not? In any case, can the
> default display be changed to something more familiar from spreadsheets and
> other computing languages?
> Thanks,
> Alan Isaac
>
> In[217]:= tv = TimeValue[1, 0.04, 3]
> tv == 1.124864
> tv == 1.12486
>
> Out[217]= 1.12486
>
> Out[218]= True
>
> Out[219]= False
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web