user_guide:tutorials:random

# Differences

This shows you the differences between two versions of the page.

 user_guide:tutorials:random [2019/01/25 09:27]oroehrig ↷ Page moved from tutorial:random to user_guide:random user_guide:tutorials:random [2019/02/04 22:55] (current) 2019/01/25 09:38 oroehrig ↷ Page moved from user_guide:random to user_guide:tutorials:random2019/01/25 09:27 oroehrig ↷ Page moved from tutorial:random to user_guide:random2017/06/12 13:45 oroehrig [Random points on the unit sphere] reduced number of points to speed up testing2014/01/03 15:45 external edit2012/05/16 12:36 herr changed VERTICES to POINTS2011/08/17 08:19 joswig [Random polytopes with are neither simplicial nor simple] 2011/08/17 08:16 joswig 2011/08/04 07:58 joswig created 2019/01/25 09:38 oroehrig ↷ Page moved from user_guide:random to user_guide:tutorials:random2019/01/25 09:27 oroehrig ↷ Page moved from tutorial:random to user_guide:random2017/06/12 13:45 oroehrig [Random points on the unit sphere] reduced number of points to speed up testing2014/01/03 15:45 external edit2012/05/16 12:36 herr changed VERTICES to POINTS2011/08/17 08:19 joswig [Random polytopes with are neither simplicial nor simple] 2011/08/17 08:16 joswig 2011/08/04 07:58 joswig created Line 1: Line 1: - ====== Random Constructions ====== + {{page>​.:​latest:​@FILEID@}} - ===== Random points on the unit sphere ===== - - The easiest way to randomly construct a polytope is by sampling points on the unit sphere. ​ The following chooses 100 points on the units sphere in 3-space. - <​code>​ - polytope > $p1=rand_sphere(3,​100);​ - polytope > print$p1->​SIMPLICIAL;​ - 1 - ​ - With probability one such polytopes are simplicial. - - ===== Random polytopes with are neither simplicial nor simple ===== - - <​code>​ - polytope > ($d,$m,$n) = (4,50,30); - polytope >$p1=rand_sphere($d,​$m);​ - polytope > $p2=polarize($p1);​ - polytope > $p3=new Polytope(POINTS=>​rand_vert($p2->​VERTICES,​$n));​ - polytope > print$p3->​SIMPLICIAL,​ " ", $p3->​SIMPLE,​ "​\n",​$p3->​F_VECTOR;​ - 0 0 - 30 166 264 128 -
• user_guide/tutorials/random.txt