Commit 6f3b0194 authored by Bate's avatar Bate

Test galaxy

parent 4e88968a
......@@ -383,8 +383,8 @@ class galaxy
WHERE a.id_star = b.id_a");
new requete($this->dbrw,"UPDATE galaxy_star SET
dx_star = IFNULL(dx_star + $sum_tense*(x_star - '$center_x')/( (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star) - sum_tense_star*(x_star - '$center_x')/( SQRT(POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star),0),
dy_star = IFNULL(dy_star + $sum_tense*(y_star - '$center_y')/( (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star) - sum_tense_star*(y_star - '$center_y')/( SQRT(POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star),0)");
dx_star = IFNULL(dx_star + $sum_tense*(x_star - '$center_x')/( (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star) - LOG(sum_tense_star)*(x_star - '$center_x')/( SQRT(POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star),0),
dy_star = IFNULL(dy_star + $sum_tense*(y_star - '$center_y')/( (POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star) - LOG(sum_tense_star)*(y_star - '$center_y')/( SQRT(POW(x_star - '$center_x' , 2) + POW(y_star - '$center_y' , 2))*sum_tense_star),0)");
//new requete($this->dbrw,"UPDATE galaxy_star SET dx_star = 200 WHERE dx_star > 200");
//new requete($this->dbrw,"UPDATE galaxy_star SET dx_star = -200 WHERE dx_star < -200");
......
......@@ -20,14 +20,14 @@ $site = new site ();
require_once($topdir. "include/galaxy.inc.php");
$galaxy = new galaxy($site->db,$site->dbrw);
/*$galaxy = new galaxy($site->db,$site->dbrw);
$galaxy->update();
for($i=0;$i<5;$i++) // Environs 1100 cycles/jours
$galaxy->cycle();
$galaxy->mini_render($topdir."data/img/mini_galaxy.png");
$galaxy->mini_render($topdir."data/img/mini_galaxy.png");*/
// Tâche 2 [verous]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment