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

#21 Publicado: 26/4/2016 1:54:20
ur_naz

ur_naz

0 me gusta en 15 mensajes.

Grupo: User

Citar

You scared me!


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

Mike Kaganski

184 me gusta en 434 mensajes.

Grupo: 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 Publicado: 26/4/2016 2:44:15
ur_naz

ur_naz

0 me gusta en 15 mensajes.

Grupo: 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 Publicado: 26/4/2016 8:52:29
Mike Kaganski

Mike Kaganski

184 me gusta en 434 mensajes.

Grupo: User

SS-2331 filed.
С уважением, Михаил Каганский
A 1 usuarios les gustó este mensaje
ur_naz 26/4/2016 14:11:00
#25 Publicado: 26/4/2016 16:11:31
ur_naz

ur_naz

0 me gusta en 15 mensajes.

Grupo: 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 Publicado: 26/4/2016 19:51:49
Mike Kaganski

Mike Kaganski

184 me gusta en 434 mensajes.

Grupo: 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) descargado 1372 vez(es).

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 Publicado: 26/4/2016 20:50:59
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1412 vez(es).
#28 Publicado: 26/4/2016 21:46:03
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 26/4/2016 22:35:19
ur_naz

ur_naz

0 me gusta en 15 mensajes.

Grupo: 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) descargado 1356 vez(es).
#30 Publicado: 26/4/2016 22:49:39
Mike Kaganski

Mike Kaganski

184 me gusta en 434 mensajes.

Grupo: User

Wrote

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



Moscow-Kiev2.sm (14,54 KiB) descargado 1373 vez(es).
С уважением, Михаил Каганский
#31 Publicado: 27/4/2016 0:34:13
Mike Kaganski

Mike Kaganski

184 me gusta en 434 mensajes.

Grupo: User

Vincenty.sm (29,72 KiB) descargado 1356 vez(es).

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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.
  • Nuevos mensajes
  • Sin mensajes nuevos