π
<-
Chat plein-écran
[^]

Beta HP Prime 12951/12969: 3D, Python, étude de fonctions...

Re: Beta HP Prime 12951/12969: 3D, Python, étude de fonction

Unread postby ggauny@live.fr » 23 Nov 2017, 11:28

Bonjour,

Dans l'étude de M Critor, au paragraphe concernant les graphiques 3D, je vois
une "image de saturne" obtenue grâce à 3 fonctions. La troisième me pose problème :
je ne parviens pas à l'écrire partant "saturne pas rond".

La commande IFTE fonctionne, mais j'aimerais savoir comment écrire cette fonction
comme vous.

Merci d'avance et bonne journée.

Gérard.
Attachments
Saturn.JPG
User avatar
ggauny@live.frPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 43.4%
 
Posts: 283
Joined: 11 Mar 2015, 20:43
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Beta HP Prime 12951/12969: 3D, Python, étude de fonction

Unread postby critor » 23 Nov 2017, 12:24

Bonjour.

Il suffit lors de la saisie d'utiliser la touche juste à droite de la boîte à outils :
Image
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 41.8%
 
Posts: 41468
Images: 14480
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Re: Beta HP Prime 12951/12969: 3D, Python, étude de fonction

Unread postby ggauny@live.fr » 23 Nov 2017, 13:04

Merci beaucoup.
User avatar
ggauny@live.frPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 43.4%
 
Posts: 283
Joined: 11 Mar 2015, 20:43
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Beta HP Prime 12951/12969: 3D, Python, étude de fonction

Unread postby critor » 23 Nov 2017, 21:46

De rien. :)
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 41.8%
 
Posts: 41468
Images: 14480
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Re: Beta HP Prime 12951/12969: 3D, Python, étude de fonction

Unread postby critor » 30 Dec 2017, 22:37

Petit code d'une mire qui teste une liste de modes RGB incluse :
Code: Select all
mireRGB(y,h,lc)
BEGIN
LOCAL s,p:=0,n,i:=1,yt:=y,str:="";
lc(SIZE(lc)+1):=0;
n:=SIZE(lc);
s:=h/n;
FOR i FROM 1 TO n DO
  IF i<n THEN
   str:=str+STRING(lc(i));
  END;
  FOR X FROM 0 TO W-1 DO
   RECT_P(X,yt,X,yt+s,2^p*IP(X/(W-1)*(2^lc(i)-1)));
  END;
  yt:=yt+s;
  p:=p+lc(i);
END;
TEXTOUT_P("RGB"+str+" ("+STRING(p)+"-bits)",0,y,1,RGB(255,255,255));
END;

EXPORT mire()
BEGIN
LOCAL lrgb:={{5,5,5},{5,6,5},{8,8,8}},i,n;
W:=320;
H:=240;
n:=SIZE(lrgb);
S:=H/n;
Y:=0;
FOR i FROM 1 TO n DO
  mireRGB(Y,S,lrgb(i));
  Y:=Y+S;
END;
WAIT(0)
END;


Avec le firmware beta, c'est RGB-888 qui produit une mire parfaite, comme on s'y attendait :
Image
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 41.8%
 
Posts: 41468
Images: 14480
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Previous

Return to News HP

Who is online

Users browsing this forum: No registered users and 14 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1137 utilisateurs:
>1117 invités
>15 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)