Test Hans 12: verschil tussen versies

 
(15 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
{{#vardefine:varRad|1.0}}
+
{{#vardefine:varRad|0.0001}}
{{#vardefine:varAng|45}}
+
{{#vardefine:varAng|175*pi/180}}
  +
 
  +
{{#vardefine:varN|{{#explode:{{PAGENAME}}| |-1}}}}
  +
n = {{#var:varN}}
   
{{#vardefine:varN|5}}
 
 
{{#vardefine:varX|{{#expr: {{#var:varRad}} * sin( {{#var:varN}} * {{#var:varAng}} )}}}}
 
{{#vardefine:varX|{{#expr: {{#var:varRad}} * sin( {{#var:varN}} * {{#var:varAng}} )}}}}
 
{{#vardefine:varY|{{#expr: {{#var:varRad}} * cos( {{#var:varN}} * {{#var:varAng}} )}}}}
 
{{#vardefine:varY|{{#expr: {{#var:varRad}} * cos( {{#var:varN}} * {{#var:varAng}} )}}}}
Regel 8: Regel 10:
 
x = {{#var:varX}} <br />
 
x = {{#var:varX}} <br />
 
y = {{#var:varY}}
 
y = {{#var:varY}}
  +
  +
<!--
  +
{{#set:Coordinate={{#geocode: The Netherlands, {{{City|}}}, {{{Postal code|}}}{{#ifeq:{{#sub:{{{Address|}}}|0|7}}|Postbus||, {{{Address|}}} {{{House number|}}}}}}}}}
  +
-->
  +
  +
{{#vardefine:varGC|{{#geocode: The Netherlands, Zuidsingel 110, 4331 RV Middelburg|format=float|directional=no}}}}
  +
<!--
  +
{{#vardefine:varGCX|{{#sub:{{#var:varGC}}|0|{{#pos:{{#var:varGC}}|,}}}}}}
  +
{{#vardefine:varGCY|{{#sub:{{#var:varGC}}|{{#expr:{{#pos:{{#var:varGC}}|,}}+1}}|0}}}}
  +
-->
  +
{{#vardefine:varGCX|{{#explode:{{#var:varGC}}|,|0}}}}
  +
{{#vardefine:varGCY|{{#explode:{{#var:varGC}}|,|1}}}}
  +
  +
gc  = {{#var:varGC}} <br />
  +
gcx = {{#var:varGCX}} <br />
  +
gcy = {{#var:varGCY}}
  +
  +
{{#expr:{{#var:varGCX}} + {{#var:varX}}}}, {{#expr:{{#var:varGCY}} + {{#var:varY}}}}
  +
  +
{{#set:Coordinate={{#expr:{{#var:varGCX}} + {{#var:varX}}}}, {{#expr:{{#var:varGCY}} + {{#var:varY}}}}}}
  +
  +
{{#show: {{PAGENAME}} | ?Coordinate}}
  +
  +
{{Geoshiftcode|Location=The Netherlands, Zuidsingel 110, 4331 RV Middelburg}}

Huidige versie van 19 nov 2016 om 22:36



n = 12



x = -8.6602540378444E-5
y = 5.0E-5




gc = 51.502686111111, 3.6157972222222
gcx = 51.502686111111
gcy = 3.6157972222222

51.502599508571, 3.6158472222222


51° 30' 9", 3° 36' 57"






51.502671111111, 3.6157712414601