[Thread Prev][Thread Next][Index]
[ferret_users] Wrong result in division
- To: ferret_users@xxxxxxxx
- Subject: [ferret_users] Wrong result in division
- From: "'Fabio' via _OAR PMEL Ferret Users" <ferret_users@xxxxxxxx>
- Date: Sat, 18 Jul 2020 23:19:59 +0200
- Arc-authentication-results: i=4; mx.google.com; dkim=pass header.i=@yahoo.it header.s=s2048 header.b="rVhC/hXY"; arc=pass (i=2 dkim=pass dkdomain=yahoo.it); spf=neutral (google.com: 209.85.222.199 is neither permitted nor denied by domain of xxtraloud@xxxxxxxx) smtp.mailfrom=xxtraloud@xxxxxxxx
- Arc-authentication-results: i=3; mx.google.com; dkim=pass header.i=@yahoo.it header.s=s2048 header.b="rVhC/hXY"; arc=pass (i=2 dkim=pass dkdomain=yahoo.it); spf=neutral (google.com: 209.85.222.199 is neither permitted nor denied by domain of xxtraloud@xxxxxxxx) smtp.mailfrom=xxtraloud@xxxxxxxx
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@yahoo.it header.s=s2048 header.b="rVhC/hXY"; arc=pass (i=1 spf=pass spfdomain=yahoo.it dkim=pass dkdomain=yahoo.it dmarc=pass fromdomain=yahoo.it); spf=neutral (google.com: 65.153.203.170 is neither permitted nor denied by domain of xxtraloud@xxxxxxxx) smtp.mailfrom=xxtraloud@xxxxxxxx
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@yahoo.it header.s=s2048 header.b="rVhC/hXY"; spf=pass (google.com: domain of xxtraloud@xxxxxxxx designates 77.238.177.146 as permitted sender) smtp.mailfrom=xxtraloud@xxxxxxxx; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.it
- Arc-message-signature: i=4; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :reply-to:message-id:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:references:to:subject:from :dkim-signature; bh=aZUJ4IR8esJsRo9iSp42gM3SJhN2dLt2CtQXIreqIX4=; b=VNhBV/1F9dhBmZBvdvbVNn7aep8WCsl1aYYK4Us4EySbICPPml64z0/co5rofJYqwD jsN4HTs65V7vL/9sUpwuHosQKolugmiBOyt17+KbCzwNQYuWM4eqUEVuTrZ4XluA2yvK XTOEln/VPPDU6C0/Sc6d1Pul1TtBSA96rwHMcYK1MyiS+byp5YSJozhe/9CLa3UMvV+v r8xnWAZMqG+213fZ1Rq/My1S02tIt0rm7cmGlNR3Zwo6iInAckU0zT/pMDToBGv1F4PO BK9r2wF/fm+3NJxFwiA1dQXb1ocJQg8Jue8Rak+etkAHBKtwmPKH/PknrU1PdQOSAZXj wCXg==
- Arc-message-signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:content-transfer-encoding:content-language:in-reply-to :mime-version:user-agent:date:references:to:subject:from :dkim-signature; bh=aZUJ4IR8esJsRo9iSp42gM3SJhN2dLt2CtQXIreqIX4=; b=juKtZSPLsH4QcdeHwfBzLxmaLG/klpPfw92N3f2wJOsqNsmXprAAqsqvqC0GbooaiW ioaWJcBX+Kj1qjrTLkXPBDjwGvU/ByvIKV1yodHQW1DsoF4oscCjqGfQG4iDM1H1PBfi 6PzEI+kYxGTTKoP2VCzjzmTEXyIRQkG81MPosDCx1G25jPbNHZ0QkXrBVX/HFRNcgiaN otmUWBm8Q62FzAG06opNVPQZ4b7ZOCKNIXjCa2Y7f/sruRdMMjcIwE0uYgulE14jg0kC +JyiwaSODKnMtp0UCnZENAL+XcjbhT9TTjiL1mbBgxVnjJ3e2zT4a5+sluHsB/wz6CCj cbWA==
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:subject:from :dkim-signature; bh=aZUJ4IR8esJsRo9iSp42gM3SJhN2dLt2CtQXIreqIX4=; b=DXe6qm7eUFPUxoyPVoxKwlZzzozX2VQsItPtUvjr+1Bf/3F2WC2xtw1PlLiJJch3fh ZH7O4oVLdFXLSvDHCVKT/PRyxKzyl6AOx46oWgAHX+FNlOOIv+XfOWZXAWYQrsFV++Mk yANs0uL9bfMiG779w2p+XZ7bDUYfUyI3SH2WuoGygGwlXXQr8EwSNhVfq2GokGk0ZLja QFu/PdgOy+K+22C6DaHgeSLFkSlq0oDQT6cAoDOqWoibho38s3VuQ2XtUQ0bAtQnezvM e9migHxt/OBRVitet3lYqBJKnHpi1S6OoyVs14Sy5icxq54sSifdJQl9zHhhNmPn57h+ a6Pg==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:subject:from :dkim-signature; bh=aZUJ4IR8esJsRo9iSp42gM3SJhN2dLt2CtQXIreqIX4=; b=IV1pZLpMypLDsJtSSb7OYskNSMCwRqrh7qpgid10kFteLIKMKUCquFExzp3oyOOecf k4ldfjkPiu9PCD3sIdt7pKXaEZl7amvaSy4lkwfM5IdT7pqA1kFis0TQHMP68LNqbScf cYhjF+E36CXkS94zpe16aQbWvp080EzeGu8W8Xd5h4FRdPlDivFiDp77os8r+Z8NXom7 9/m6ZUuNwmHQF9ctXZa/usA/5TaJmM5kQyBlNUejfiw5KCB1i5SFrc/tLGrRiohFMq5l y7KpAN3Oir9HNXK5blintcO8Y2rTnaSdrh8JQfCEdrH++phTEM6FLUZQ+6lqWWLC2YnN 0euA==
- Arc-seal: i=4; a=rsa-sha256; t=1595107213; cv=pass; d=google.com; s=arc-20160816; b=votI+tkjeGfKgwGR3Ln+p0koufebxdXmmIzsTeHW+rkMGATmYL1A83KNwT/YtPIEe4 K+/LL/QqE5tvahhi1A4QWQWCqfG/87jhpK0tQv6d+eugcFxnX7pzmLVrBFDRwbGgs23l FdAgafEXnVBELKsJ/N+BbcdF3Zfo8a/DmBX0N+oOx0ZO/U1Tplf4P6euBgtS5zy3gwny M3ipELzvAz3T868PpLqQod5nqBfbW98V3FkT/7sHosQjJEoR9csmt8H/uQ4hefgR0SO4 kZgX05ty3f8d5PhZlZFkOBw8MUeRJ3GgQRSNecApf9u9FKA0k/6E4qrs8xJINw4cA6Rq XSGw==
- Arc-seal: i=3; a=rsa-sha256; t=1595107212; cv=pass; d=google.com; s=arc-20160816; b=LoMLMr409zyHdAvFh1AXCmANM4PNR7QDRGIeD4Szzt5mrf6j6tBSK33KZbUKmDG0zR jobsUjIE9rFmFBy37Svy99EymdJy0t9JlEs3m/ipXVWI73Nde/kB/FYcGUj8tgvri7Ne g1NApLlMdL7ASQpWr/CLMh/StAXwWNKjd82DCb3EfnrAbcy021jx4zfsXHR17AKyFkEq N5vO6UK6GmQf2TXl5ce41B3Tn8yLbYX0f2VJBnfb9VXtGOtsBR/stlXWTwSA+hL8cqKy 4tociSH3+/k/4A4YpCF+zr0HCBd/93VDXeB9JL2+wU0R1DRuw9jVxC6Np4+XD1r/zVUQ 6weA==
- Arc-seal: i=2; a=rsa-sha256; t=1595107208; cv=pass; d=google.com; s=arc-20160816; b=ixQXbdrBJ1iUwhYuYtvun2WQoWOav0Obwi+iJcNg2LB/7Mb4g1YjVufADI8HONZB5U WBC5AW/vykQtU4O+caWK2OiNK3WHhAVitvc/oPXXHEhV1oq082UEZb1l8emXjgwPIEXJ 8O2+43j+8veGInK3ESul3M+IDnECxtdR5whBxalC/baG0vg2MIiYQxRDEIWBl69FrkJN omCViptnjyuEf5VHs8Av8fC+5LYID3/wGWdVczqRBsag0rTMZ+lBGzRykqpvWBAJsCmI Jn69qRUgnP3CTG/02RTCFJkppdRvJNjpHMpzuyG9qB9A7fdAAXkKJ4s6k71b+ddBiQnU Mh5A==
- Arc-seal: i=1; a=rsa-sha256; t=1595107206; cv=none; d=google.com; s=arc-20160816; b=X5ibazzuox4DgpaAHiduNr7tEWXXvng/xQSjEYumTdJFzrvSDho5b1SErZNJ+bMJ19 kR4GHCcYw1TSkVzU7vQ/rqlrJIDeG0QIASKLHPCx+8yc/ftHOj/YcApY9k4fpgqCnKuV hCSVyJccXmS8ImZuyHOPRW9X8X7WgmXUfAOuZp5W1RvPQxEugSJIyTCoL+gMRQLgMFfb uRJ4oHE7YRry7sutx7WU9hamiFyQfRzCITm+lSQUUwyaHTDFpYE7omkzxghC91X4zuDU tys7YmTHs9YcA357CwngLLCtvAG/X9NcxW1d+SeaDLfsW+2+W1Z/BzdI/jcpCdBb77b1 b4gA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=from:subject:to:references:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding:message-id :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive; bh=aZUJ4IR8esJsRo9iSp42gM3SJhN2dLt2CtQXIreqIX4=; b=Xp+QwxQ2YR2sIcEfmTpfEjBzMCqPWBcT89a4RJ+3sDvkTt8tOvFX9qr3X2WaJR0cEh RMD3vOQiz5minb7+U1hJfWLgzNVOs6caOYkeQEs7+bhk3zF9zCbFWzNIzHFZ47si+9F6 hdeyjyMEAVJSZqAqspTND4M7O7STb7qDDOS0SFKavPm6PLvLCV8dcibxmasw4UZAKnq7 ATX6CpkTCTgHWioK3a/m25fFjFovh14mDGM1hhN6HCYNjaD/urzyyc1YU3AwYn2NaGIr KKAeaaseoZw592bBTl340ogrTSBdZOdO8f9SdCLzVAB4oqtEUrxdcExdxVagqBJAOMew 4B8Q==
- In-reply-to: <0fde9cf2-7047-98ca-0780-1fc3a2fe9f75.ref@yahoo.it>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <0fde9cf2-7047-98ca-0780-1fc3a2fe9f75.ref@yahoo.it>
- Reply-to: Fabio <xxtraloud@xxxxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0
Dear all,
I am sorry to send another question but I am puzzled as to why this
simple division is giving the wrong result. The same calculations in R
give the correct result.
I have 2 variables calculated with the following
let myvar1 = var1[k=@sum] * 30 / .12
let nw = var2 * var3 * 30 / 1000
let myvar2 = nw[k=@sum]
and my result
let result = myvar1/myvar2
MYVAR1 MYVAR2 RESULT
---- J:30
25E / 103: 0.0054 0.0049 1.09
27E / 104: 0.0356 0.0344 1.03
---- J:31
25E / 103: 0.0490 0.0390 5.54
27E / 104: 0.0458 0.0338 1.36
---- J:35
25E / 103: 0.1618 0.1680 47.26
27E / 104: 0.0028 0.1906 0.20
But clearly RESULT is wrong, why is this happening?
Thanks in advance
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement