[SS-111][SS-2327] arguments names interference

[SS-111][SS-2327] arguments names interference - When using user functions, the answer is different than making step by step calculations. - 消息

#21 已发布: 2016/4/26 01:54:20
ur_naz

ur_naz

0个赞,共15个帖子。

组: User

引用

You scared me!


Oh! You made my day!
But why SMath does so? Or was it my fault?
#22 已发布: 2016/4/26 02:19:00
Mike Kaganski

Mike Kaganski

184个赞,共434个帖子。

组: User

Actually, it's your fault.
You should always keep attention on where exactly your input goes. It is indicated by underscore, so if you see that you "selected" not your current block, but whole formula, you should use arrows to go to required block prior to entering next part.

But here, SMath could make it apparent showing bracckets...
С уважением, Михаил Каганский
#23 已发布: 2016/4/26 02:44:15
ur_naz

ur_naz

0个赞,共15个帖子。

组: User

I copied twice corrupted region, made the new one and moved the copied parts to it and get proper result...
I can't reproduce this bug?... Maybe leave it to later days...
#24 已发布: 2016/4/26 08:52:29
Mike Kaganski

Mike Kaganski

184个赞,共434个帖子。

组: User

SS-2331 filed.
С уважением, Михаил Каганский
1位用户喜欢此帖子
ur_naz 2016/4/26 14:11:00
#25 已发布: 2016/4/26 16:11:31
ur_naz

ur_naz

0个赞,共15个帖子。

组: User

I ported my code from here

http://stackoverflow.com/questions/10175724/calculate-distance-between-two-points-in-bing-maps

But I can't understand nr & dr. What does they mean? And why they finally gives improper result?
#26 已发布: 2016/4/26 19:51:49
Mike Kaganski

Mike Kaganski

184个赞,共434个帖子。

组: User

Wrote

I ported my code from here

http://stackoverflow.com/questions/10175724/calculate-distance-between-two-points-in-bing-maps

But I can't understand nr & dr. What does they mean? And why they finally gives improper result?



List2.sm (11.49 KiB)已下载 1386 次。

Their purpose is to compensate the difference between equatorial and pole radiuses of Earth, and displace of your arc from Earth major corcumference. Generally, you measure the distance not over equator, nor ober meridian, but over some arc that is both displaced and rotated. You need to know its radius to be able to measure its length.

But anyway, their source is unclear, and they do give wrong results.
You may simply take average radius of Earth to het descent results.
С уважением, Михаил Каганский
#27 已发布: 2016/4/26 20:50:59
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Looking at the attached:
1. Wikipedia formula 7777 km is wrong
2. one of those calculator 5050 km is wrong too
3. Haversine [NASA] 5915 km looks probable
Why not give some visible locations [Los Angeles, Moscow]

Angle Data 'j' Earth Distance.sm (46.15 KiB)已下载 1428 次。
#28 已发布: 2016/4/26 21:46:03
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I copied twice corrupted region, made the new one and moved the copied parts to it and get proper result...
I can't reproduce this bug?... Maybe leave it to later days...



A "corrupted region" is by the software, not by you. By you: just incorrect.
"Corrupted rgion" creates by hemselves, most annoying. Aslo, sometimes "corrupted region"
doctor by themselves. If you supect "corrupted region", recreate on blank sheet from A..Z.
There is no way to detect the corruption. It may just be within some of the primary
function as simple as missed some coefficients in sin(x), for instance.
Corrupted regions did happen in Mathcad 11 [rarely], mostly on long work sheet, even more
annoying. The wrost case: the backup is not up to date and nothing to recreate .

#29 已发布: 2016/4/26 22:35:19
ur_naz

ur_naz

0个赞,共15个帖子。

组: User

Wrote

Why not give some visible locations [Los Angeles, Moscow]



Here is Moscow-Kiev distance calculation...
It is still improper.

Moscow-Kiev.sm (12.39 KiB)已下载 1368 次。
#30 已发布: 2016/4/26 22:49:39
Mike Kaganski

Mike Kaganski

184个赞,共434个帖子。

组: User

Wrote

Here is Moscow-Kiev distance calculation...
It is still improper.



Moscow-Kiev2.sm (14.54 KiB)已下载 1390 次。
С уважением, Михаил Каганский
#31 已发布: 2016/4/27 00:34:13
Mike Kaganski

Mike Kaganski

184个赞,共434个帖子。

组: User

Vincenty.sm (29.72 KiB)已下载 1373 次。

https://en.wikipedia.org/wiki/Vincenty%27s_formulae
С уважением, Михаил Каганский
#32 已发布: 2016/4/27 08:50:53
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Thanks Mike:

Vicenty sanity check very closely with some on-line calculator [5060/5045]
Haversine NASA is quite in eccess 5915 km.

Cheers, Jean.
  • 有新帖
  • 无新帖