[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. - Messages

#21 Posted: 4/26/2016 1:54:20 AM
ur_naz

ur_naz

0 likes in 15 posts.

Group: User

Quote

You scared me!


Oh! You made my day!
But why SMath does so? Or was it my fault?
#22 Posted: 4/26/2016 2:19:00 AM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: 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 Posted: 4/26/2016 2:44:15 AM
ur_naz

ur_naz

0 likes in 15 posts.

Group: 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 Posted: 4/26/2016 8:52:29 AM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: User

SS-2331 filed.
С уважением, Михаил Каганский
1 users liked this post
ur_naz 4/26/2016 2:11:00 PM
#25 Posted: 4/26/2016 4:11:31 PM
ur_naz

ur_naz

0 likes in 15 posts.

Group: 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 Posted: 4/26/2016 7:51:49 PM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: 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 KiB) downloaded 47 time(s).

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 Posted: 4/26/2016 8:50:59 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 48 time(s).
#28 Posted: 4/26/2016 9:46:03 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 4/26/2016 10:35:19 PM
ur_naz

ur_naz

0 likes in 15 posts.

Group: 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 KiB) downloaded 46 time(s).
#30 Posted: 4/26/2016 10:49:39 PM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: User

Wrote

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



Moscow-Kiev2.sm (14 KiB) downloaded 46 time(s).
С уважением, Михаил Каганский
#31 Posted: 4/27/2016 12:34:13 AM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: User

Vincenty.sm (29 KiB) downloaded 51 time(s).

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

Jean Giraud

983 likes in 6866 posts.

Group: 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.
  • New Posts New Posts
  • No New Posts No New Posts