1590 résultats trouvés

par Gilles59
03 nov. 2011 11:49
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°11
Réponses : 51
Vues : 21484

Re: Misez p'tit, Optimisez - N°11

Hobiecat a écrit :
Sur une 15c, on va donc arriver assez vite à un programme très conséquent, plus tellement dans l'esprit de Misez p'tit...
Sauf peut-être en RPL ou des langages type LISP, je ne vois pas trop comment descendre sous les 80 pas (au hasard ;)
par Gilles59
02 nov. 2011 22:14
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°11
Réponses : 51
Vues : 21484

Re: Misez p'tit, Optimisez - N°11

Bon, je vois pas trop comment faire avec la 602P pour gérer les parenthèses avec la méthode que j'emploie....Enfin j'ai une idée mais c'est lourd : utiliser encore un GSB ou un GOTO indirect (mais faut gérer l'ouverture et la fermeture de façon cohérente). Par ex pour ouvrir, si MR09 contient le nombre de parenthèses çà donnerait :

Code : Tout sélectionner

IND GOTO9

LBL3
(
LBL2
(
LBL1
(
LBL0
On doit pouvoir faire plus simple ...

Pas de parenthèse en RPN : avantage ?

A noter que la séquence

Code : Tout sélectionner

63 Min05

LBL0
MR05 Min08
3 Min00 
LBL1
   MR08 / 4 - INT Min08 = * 4 = IND Min00
DSZ GOTO1
...
1 M-05
MR05 x>=0 GOTO0
[/size]

Permet de générer les 64 séquences possibles de 3 suites de + - * /
En fait ca reprend les chiffres des nombres de 63->0 en base 4
333 (=63)
332
331
330
323
322
etc. jusque 000

Chaque chiffre du nombre va ensuite dans les MR01...MR03 pour combiner les suite de + - * / qui génèrent le nombre
Cà évite 3 boucles imbriquées pas forcélent évidentes sur ce genre de machine.
Avec juste 3 boucles imbriquées l'intérêt est discutable mais ce genre de code permet de gérer aussi bien n boucles imbriquées
par Gilles59
02 nov. 2011 17:36
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°11
Réponses : 51
Vues : 21484

Re: Misez p'tit, Optimisez - N°11

Tous en vacances lol

Une version en 91 pas qui gère la priorité des opérateurs mais pas encore les parenthèses :

Code : Tout sélectionner

**P0
+ ";+"

**P1
-  ";-"

**P2
* ";x"

**P3
/ ";/"

**P4
MinF
63 Min05

LBL0
 MR05 Min08
 3 Min00 "4"
 LBL1
   MR08 / 4 - INT Min08 = * 4 = IND Min00 
 DSZ GOTO1

 3 Min07 4
 LBL2
  IND X<->M07 Min00 IND X<->M07 IND GSB(0) 4  ";4"
  X<->M00 7 x<->M00 
 IND DSZ GOTO2

 = ";" x=F HLT AC
1 M-05
MR05 x>=0 GOTO0
"FIN"
Trouve cette fois 7 = 4+4-4/4

reste à y mettre les ((())) !
par Gilles59
01 nov. 2011 22:50
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°11
Réponses : 51
Vues : 21484

Re: Misez p'tit, Optimisez - N°11

En fait dans le compte est bon, on a des genre de parenthèses, puisqu'on peut faire un calcul avec 2 plaques et combiner le résultat au calcul précédent, ce que ne fait pas mon prog qui ne trouve pas de résultat pour 7 alors que :

7 -> 4 - ( 4 / 4 ) + 4
par Gilles59
01 nov. 2011 22:01
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°11
Réponses : 51
Vues : 21484

Re: Misez p'tit, Optimisez - N°11

Version 602P en 100 pas tout rond (sans chercher à optimiser à ce stade) sans les parenthèses ni gestion des priorités (genre le compte est bon donc) :

Code : Tout sélectionner

**P0
4 M+06
";+"

**P1
4 M-06
";-"

**P2
MR06 * 4 = M+06
";x"

**P3
MR06 / 4 = M+06
";/"


**P4 
MinF
63 Min05 

LBL0
 MR05 Min08
 3 Min00 "4"
 LBL1
  MR08 / 4 - INT Min08 = * 4 = IND Min00 
 DSZ GOTO1

 4 Min06 3 Min07
 LBL2
  IND MR07 Min00 IND GSB(0)  ";4"
 1 M-07
MR07 x=0 GOTO3 GOTO2

LBL3
MR06 ";" x=F HLT AC
1 M-05
MR05 x>=0 GOTO0
"FIN"

Code : Tout sélectionner

Test : 0 P4 donne

4 - 4 / 4 / 4
4 - 4 x 4 / 4
4 - 4 / 4 x 4
4 - 4 x 4 x 4
4 x 4 / 4 - 4
4 / 4 x 4 - 4
4 + 4 - 4 - 4
4 - 4 + 4 - 4
4 - 4 - 4 + 4
FIN

Code : Tout sélectionner

9 P4

4 / 4 + 4 + 4
FIN
Reste à ajouter les ()

Nota :
- avec cet algo il est facile d'augmenter le nombre de chiffres genre 4+4+4+4+4
- Sur la 602P l'adressage indirect d'un sous-programme ne se fait que sur le mémoire MR00 ce qui alourdit un peu
- Pas de test genre x>0 ce qui alourdit un peu

Edit : Je viens juste de voir que 0<=N<=9. Comme quoi faut toujours bien lire l'énoncé :geek: .
Bon ici çà marche pour tout entier
Ex pour 60
-> 4 x 4 x 4 - 4
etc...
par Gilles59
30 oct. 2011 19:27
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°11
Réponses : 51
Vues : 21484

Re: Misez p'tit, Optimisez - N°11

charognard a écrit :te gène beaucoup en fait ;)
Damned ! je suis découvert 8O

Edit : je sèche en version 602 avec les pb de parenthèses ... Humm vais essayé par un autre bout ou en RPL (sans EVAL)
par Gilles59
30 oct. 2011 18:52
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°11
Réponses : 51
Vues : 21484

Re: Misez p'tit, Optimisez - N°11

Bel exercice ! Allez j'y vais ce soir avec la 602 ;)

J'ai le principe en tête mais l'autorisation des parenthèses me gène un peu :O
par Gilles59
27 oct. 2011 23:01
Forum : Tous les Pockets
Sujet : Donner vie à la TI-88
Réponses : 78
Vues : 20682

Re: Donner vie à la TI-88

charognard a écrit :regarde ici c'est bien du 5x7 en matrices séparés
http://casio.ledudu.com/pockets.asp?type=1019&serie=91
:geek: J'avais mal mis mes lunettes :wink:
par Gilles59
27 oct. 2011 22:46
Forum : Tous les Pockets
Sujet : Future HP39Gii
Réponses : 2
Vues : 2228

Future HP39Gii

On avait parlé ici d'une possible HP39GII mais je ne retrouve plus le topic...

ce modele est apparu sur le site de HP avant de disparaitre presque aussitôt ! ( comme pour la 15C LE)

J'ai eu le temps de copier quelques infos :
Grayscale 256 x 127 pixels :

" * Plot graphs with greater precision than competing calculators.

* Plus, the HP 39gII offers a programming language that’s modern and complete with user-defined variables and functions.

* This graphing calculator is loaded with 15 applications to help students learn. For example, manipulate a graph and see the associated equation change instantly using the HP explorer app.

* The HP 39gII boasts more than 600 built-in functions, powerful HP solvers and unit conversions."
Voir aussi :
http://www.hpcalc-ap.com/products_01.html

Ca ressemble de très près à une HP39GS avec un bien meilleur écran + mem flash + évolution du langage de prog (?)
Pour mémoire la gamme 39 que je connais mal est algébrique uniquement (mas programmable en RPL Système il me semble, voir ce qu'il en sera de cette Gii). Ca peut laisser espérer une 50Gii (bien que je me demande si une augmentation massive de la taille de l'écran + niveau de gris ne pose pas un pb de mémoire sur la 50G si on veut garder une RAM importante ?)

Traduit du chinois çà donne :
Outline
Exploration, study and imagination mathematics and science ideal tool
HP 39gII graph calculator's being published is helps the student to explore, the study and in the visualization mathematics scientific field essential concept. This ideal classroom graph calculator may carry on the preservation to your operation, later may also share together with other people. Uses the commonly used algebra data feeds, explains each kind of question likely on the paper using the mark, the digit and the graph view enhancement solves the problem and studies the interactive historic record to be possible to review and processes the data to explore and in the study with ease founds and uses the apps application program counter's user interface and the built-in help support Chinese and English.

Formidable function
1. the built-in application library of subroutines, the scientific constant and the part help you to solve the complex problem. Through to mark, digit and graph
2. the exploratory development produces to a complex mathematics concept better understanding.
3. using mathematics science in physical constant and huge unit conversion built-in library of subroutines.
4. splendid performance and sufficient memory
5. easy to read display monitor.
6. the utilization formidable HP solution and the application procedure solve the difficult problem.

Highly effective design
1. the math student's necessity, may preserve your operation, later comes back also to be possible to share together with other people.
2. presses down a button then to carry on the cut in the view.
3. the use slipper type apron strengthens the protection.
4. in the emergency case only need use the single-node battery.

Visits the HP resources and the online tool
You may also obtain and download under HP supports and strengthens the high quality online tool, such as solutions and the study and so on course, educational resources opportunity obtains from yours calculator are more.
Please register: www.hp.com/calculators for more information

Parameter

Processor and monitor
CPU ARM9
Display technology LCD
Monitor size 256x128 picture element
Monitor color Gradation level
Contrast gradient May adjust
System logic and keyboard
Input system logic Algebra
Menu/prompt Yes
Keyboard Letter digital
Function
Memory 256 Kb user storage
Intermediate/internal digit precision Intermediate/internal digit precision: 15; Demonstration numerical precision: 12; Index numerical precision: ±499
Characteristic
Graph characteristic

2D cartography: Functional equation, polar coordinate equation, parametric equation;
Division picture: Cartography and form, forward and backward focal variation
Statistical chart: Scatter diagram, stick plot, box shape chart, normal probability, two-dimensional function, straight line, arrangement; Search intersection, extreme value, slope, two curve area; Enlargement, tracing, coordinate, shadow
Mathematics characteristic +, -, x,/, √, 1/x, ex, X√y, yx, LOG, 10x, x2! ;
; Angle transformation: Angle, radian, data management system; Score; Trigonometric function/inverse trigonometric function; Numerical integration, differential, summation; Extracting a root; The absolute value, rounds up
Statistical property Based on: σx, σx2, σy, σy2, σxy; Edition and preserved tabulation; The standard sample is bad, mean value; Overall standard deviation; Combination, arrangement; Weighted average; Curve fitting (straight line, logarithm, index, power, index power, regression analysis, quadratic equation, cubic equation, quartic equation); Deduction statistics; High-level probability distribution
Has custom-made according to the user's needs HP extracts a root
Connection USB serial interface
Use Mathematics exploration (linear, two times, trigonometric function), extracts a root “HP Solve”, the linear equation solves, finance, triangle solution
Memory
Memory object Real number, plural number, matrix, vector, tabulation, procedure, record, from definition application procedure
Procedure memory 256KB
Material and smooth finish
Crown outer covering and key material ABS and PC+ABS (arc goes against)
Color White frosting refacing
Power source and battery
Power source AAA x 4, under a battery then move
Battery life Decided by the battery itself
Automatic shut-off power source 3 minutes later
Close-down memory protect Yes
Observes and the test authorization
Is suitable in Mathematics, elementary algebras, algebra, trigonometry, calculus, statistics, geometry, biology, chemistry, physics, geoscience and so on
Meets the test requirement ■ACT Assessment? , PLAN? and EXPLORE? Is the ATC Corporation's registered trademark. Wants to understand that more information please register www.act.org. The stipulation momentarily changes.
■ AP Calculus AB and AP Calculus BC. Wants to understand that more information please register www.collegeboard.com. The stipulation momentarily changes.
■ AP chemistry, AP physics, AP statistics, PSAT/NMSQT? , mathematics 1 and mathematics 2 SAT inferences and SAT subject test. Wants to understand that more information please register www.collegeboard.com. The stipulation momentarily changes.
Size and weight
Weight Approximately weight 247 grams (8.7 ounces) w/battery
Size (long x width x depth) 18.7 x 9.4 x 3.1 centimeters (7.4 x 3.7 x 1.2 inches)
Packing
Maintenance (because 1 year possible area different)
Packing box content The calculator, the slipper apron, the battery, the user's manual, the USB electric cable, connects the software compact disc, high-quality owner's manual
par Gilles59
27 oct. 2011 22:34
Forum : Tous les Pockets
Sujet : Donner vie à la TI-88
Réponses : 78
Vues : 20682

Re: Donner vie à la TI-88

charognard a écrit : Afficheur 16 caractères dans une matrice de 5x7,
Hello... En regardant la photo çà semble plus que 5x7 !?
par Gilles59
27 oct. 2011 21:39
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)
Réponses : 67
Vues : 30114

Re: Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)

C.Ret a écrit :
Gilles59 a écrit :Variante RPL pour des entiers :

Code : Tout sélectionner

« 10 - 91 DUP2 < {SWAP} IFT DROP »

Pour ces mêmes entiers, je mise plus petit :

Code : Tout sélectionner

 « 10 - 91 MAX » 

Bien vu ! :D
par Gilles59
27 oct. 2011 18:24
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)
Réponses : 67
Vues : 30114

Re: Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)

zpalm a écrit :
Hobiecat a écrit :
cgh a écrit :Une version en FORTH (testée sous pfe). Pour ceux qui possèdent le module FORTH pour HP-71B.

Code : Tout sélectionner

: m91
dup 101 < if 11 + recurse recurse else 10 - then
;
J'adore vraiment ces fils misez p'tit : que de découvertes de bidouilles de programmation, de particularités de machines ou comme ici, de subtilités de langages !
Pas de recurse sur le FORTH du HP 71B :(
Tu dois pouvoir faire :

Code : Tout sélectionner

: m91
dup 101 < if 11 + m91 m91 else 10 - then
;
??
par Gilles59
27 oct. 2011 18:17
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)
Réponses : 67
Vues : 30114

Re: Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)

Variante RPL pour des entiers :

Code : Tout sélectionner

« 10 - 91 DUP2 < {SWAP} IFT DROP »
par Gilles59
26 oct. 2011 18:01
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)
Réponses : 67
Vues : 30114

Re: Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)

pir2 a écrit :Si on commence à tricher ...

Code : Tout sélectionner

100
x<>Y
X<=Y?
101
10
-
:D Même idée que mon prog 602P au dessus.
C'est pas tricher, c'est réfléchir
par Gilles59
26 oct. 2011 16:32
Forum : Tous les Pockets
Sujet : Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)
Réponses : 67
Vues : 30114

Re: Misez p'tit, Optimisez - N°10 (hommage à J. McCarthy)

Version Casio 602P en 9 pas :

Code : Tout sélectionner

 
 MinF 10 M-F 91 x≥F X↔MF X↔MF
Euh, j'ai pas la 602 sous la main mais çà doit marcher lol
Bon ca serait plus simple si les tests avait un inverse :O Mais faut vous faire réflechir un peu ;)

Aller à la recherche avancée