Deutsch   English   Français   Italiano  
<3yE41juinCAP_AjzcsfIlDRAQjA@jntp>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!pasdenom.info!from-devjntp
Message-ID: <3yE41juinCAP_AjzcsfIlDRAQjA@jntp>
JNTP-Route: news2.nemoweb.net
JNTP-DataType: Article
Subject: Re: =?UTF-8?Q?=3D=3FUTF-=38=3FB=3FRGlzdGFuY=32UgZW=35=30cmUgcG=39pbnRzIHN?= 
 =?UTF-8?Q?=31ciB=31bmUgc=33VyZmFjZSBzcGjD=3F=3D=20=3D=3FUTF-=38=3FB=3FqXJ?= 
 =?UTF-8?Q?pcXVl=3F?=
References: <63075744$0$24799$426a74cc@news.free.fr> <aSAQttjqoS_ZA9NgpNuxz2yqzTs@jntp> <cU4gHEQ3_Gslr_zawfolWBv958E@jntp>
 <52XPon1BMdUdXsAg6qLoMCEa6H4@jntp>
Newsgroups: fr.sci.physique,fr.sci.maths
JNTP-HashClient: 6XLuupzKQXJMdPr_wViP_wa7oNo
JNTP-ThreadID: 63075744$0$24799$426a74cc@news.free.fr
JNTP-ReferenceUserID: 1@news2.nemoweb.net
JNTP-Uri: http://news2.nemoweb.net/?DataID=3yE41juinCAP_AjzcsfIlDRAQjA@jntp
User-Agent: Nemo/0.999a
JNTP-OriginServer: news2.nemoweb.net
Date: Fri, 26 Aug 22 16:10:21 +0000
Organization: Nemoweb
JNTP-Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Injection-Info: news2.nemoweb.net; posting-host="095f3744c0ffd4df4f350c9c40c789002c6e538a"; logging-data="2022-08-26T16:10:21Z/7194397"; posting-account="142@news2.nemoweb.net"; mail-complaints-to="newsmaster@news2.nemoweb.net"
JNTP-ProtocolVersion: 0.21.1
JNTP-Server: PhpNemoServer/0.94.5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-JNTP-JsonNewsGateway: 0.96
From: Samuel DEVULDER <samuel.devulder@laposte.net.invalid>
Bytes: 2945
Lines: 51

Le 26/08/2022 à 17:24, Julien Arlandis a écrit :
> 
> Le problème de François Guillet peut se traiter en ne considérant qu'une 
> petite portion de sphère qui tend localement vers une surface plane, la question 
> de la projection ne se pose pas.

Désolé je ne suis pas d’accord. La moyenne est une propriété globale 
et non locale. Tu ne peux extrapoler la moyenne sur l’ensemble de la 
sphère à partir d’une moyenne sur un sous ensemble non représentatif 
tel qu’un voisinage plat (la sphère n est pas globalement plate). 

Bref ça marche pas avec la distribution uniforme en x/y choisie. Le lien 
wolfram donne de bonnes distributions sur la sphère unité. Il faut 
utiliser celles là pour bien capturer la moyenne empiriquement. Exemple

t = uniform random in [0, pi[
u = uniform random in [-1, 1]

x = sqrt(1-u²) cos(t)
y = sqrt(1-u²) sin(t)
z = u

En lua
function rnd_pt()
  local t=math.random()*2*math.pi
  local u=math.random()*2-1
  local v=math.sqrt(1-u*u)
  local x=v*math.cos(t)
  local y=v*math.sin(t)
  local z=u
  return x,y,z
end

N=1000000
l=0
for i=1,N do
  x1,y1,z1 = rnd_pt()
  x2,y2,z2 = rnd_pt()
  l = l + math.sqrt((x1-x2)^2 + (y1-y2)^2 + (z1 - z2)^2)
end

print(l/N)

Affiche:

1.3333635183726


Pas très loin des 4/3 que j’avais calculé ! 

Sam(pas encore platiste)