Hello:

Here is a bit of R-code:

> mvr
[1] 2.2658
> (sin(.Last.value)+sin(2*.Last.value))
[1] -0.2156507
> acos((-sqrt(17)-1)/8)
[1] 2.2658
> (sin(.Last.value)+sin(2*.Last.value))
[1] 1.76745
> (sin(mvr)+sin(2*mvr))
[1] -0.2156507
>

Note that my variable mvr is the value of acos((-sqrt(17)-1)/8).   However, if 
I use .Last.value after invoking the acos function in a further calculation, I 
get a nonsensical result.   What is going on?

I am running R version 4.0.0 (2020-04-24) on an iMac, operating system MacOS 
11.4 “Big Sur”.

Mik Bickis
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to