Accueil > > > EVALUATEUR D'ÉQUATION POUVANT PRENDRE JUSQU'À 5 PARAMÈTRES (EXTENSIBLE)
EVALUATEUR D'ÉQUATION POUVANT PRENDRE JUSQU'À 5 PARAMÈTRES (EXTENSIBLE)
Information sur la source
Description
Un composant (C++Builder) qui hérite de TCustomEdit et qui vous permet de saisir une expression mathématique pouvant prendre jusqu'à 5 variables (vous pouvez rajouter autant de variables que vous voulez). Il vous permettra par exemple d'évaluer l'expression à partir de valeurs saisie, ou encore de représenter graphiquement des fonctions dont vous avez saisie l'expression. Le composant s'accompagne de 2 exemples d'utilisation.
Conclusion
All right reserved Copyright (c) 2006 >>mskhelladi<< MathComp beta version EquationEdit 1.00 FOR C++BUILDER 5 & 6
1. What's this for? -------------------
EquationEdit is a component which inhirit all his properties, methods and events from a TEdit class and on which you can write without any fuss a math expression (without or with variables) (what? what I mean by math expression and variables? that mean 1+1 or simply sin(exp(x/(sh(x)-3.15)^0.12) in this case x is the variable) and get the numerical value of the expression.
2. What about EquationEdit's new properties and methods? ----------------------------------------- ---------------
The additionnal property is :
__property int NVar={read=GetNVar,write=SetNVar};
1st) NVar is a 'published' property. 2nd) 'N' means N-umber and 'Var' means Var-iable: so N+VAR gives NVar. 3rd) Nvar is always <= 5 (and >=0 of course)(sorry, you can't exceed 5 variables (x,y,z,a and b), UNLESS! you change the source code... 4th) the default value of NVar is 1. That's all for NVar.
The additionnal method is:
double Value(bool go,...);
1st) 'Value' is a public method. 2nd) the argument 'go' allows the calculation when it takes the value 'true'. 3rd) the '...' means that you can put as many variables as you wish (not realy 'as you wish' but let's say 5 variables (arguments)) according to the value of NVar. That's very important so follow me carefully, when you put your variables (in '...') the 1st position corresponds to 'x' and the 2nd,3rd,4th and 5th respectively to 'y,z,a and b'. Don't forget that we are dealing with the NUMERICAL values of 'xyzab'. (don't worry! if you are not silly you'll understand more by the exemples and by seeing the source code in .cpp and .h).
3. How do I extract the .exe? -----------------------------
Double click (or click once according to your OS settings) and specify a directory in which you wish to extract the files (I advice you to extract all the files in a directory within the Builder root for exemple C:\Borland\BCB5\NewComp).
4. What do I do with these files? ---------------------------------
AH! - Click (twice or once according to your OS settings) on EquationEditBCB5.bpk. - Then, click on "install" button, at the package box.
or - Run C++Builder5, and close all the current projects. - go to Component->Insall Component->Into new package, then specify the position of the Unit file name and the Package file name. Press OK. - Then, click on "install" button, at the package box.
If you need even more explicit information, well, here's a table (*backup any existing files first*, if you are at all worried about that kind of thing ... I always do): [I'll assume you know where you installed Builder, and I'll call it's directory "BCB_Root" and "NewComp" the directory where you extracted the files, for the sake of sanity.]
File Destination Description ==== =========== =========== EquationEdit.cpp BCB_Root\NewComp Unit file name EquationEditBCB5.bpk BCB_Root\NewComp Package file name
5. OH SHIT! IT DIDN'T WORK! ----------------------------
Um, it SHOULD have. Contact me (if you get stuck or whatever) at:
mskhelladi@yahoo.com sofiane.khelladi@gmail.c om
6. Now what? ------------
Take a look on the exemples for more details.
I hope you will find this component usefull! :) >>>>>>don't forget to Send me your comments.
Thanks.
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
passer un programme en "windows service" cbuilder [ par Sloft ]
Comment faire pour faire passer un programme en "windows service" sous c++builder 5, merci !
Recherche : Résolution de systeme d'equation matricielle [ par julien81 ]
Bonjour tlm En fait cette année j'ai un sujet pour mon projet annuel c'est de faire le prog pour resoudre un systeme d'equation avec des matrice (dime
Propriétés des composants [ par dominion ]
Stl tt le monde !J'essaye de me faire une boite de dialogue a propos dans un composant. Juskici ca va mais j'rrive pas a créer de propriété TPicture p
excel avec cbuilder [ par BScrk ]
BScrkkestion: y a t'il un composant (ou code)qui permette de sauver des données (Tab[...])dans un fichier au format excel(composant fre
excel avec cbuilder [ par BScrk ]
BScrkkestion: y a t'il un composant (ou code)qui permette de sauver des données (Tab[...])dans un fichier au format excel(composant fre
Couleur des composants...mais onctlcolor ne suffit pas [ par garslouche ]
Bonjour,j'ai un CStatic de grande taille avec un petit texte. Le problème c'est que quand j'utilise OnCtlColor pour changer la couleur de fond, seul l
scanner de ports avec ics [ par melg ]
je dois réaliser un scanner de ports en c++builder avec les composants ics.Quels sont les composants que je dois utiliser?Est-ce que quelqu'un a des a
equation d'une droite [ par gagah1 ]
Quelqu'un pourrait m'aider à trouver l'equation d'une droite (à 3 dimensions) qui passe par un point A(a,b,c) et qui a un vecteur U(u,v,w). Je ne me r
equation [ par sorcier0011 ]
Voila j'aimerais bien faire un programme qui resout des equations à 2 inconnues. Mais je ne trouve pas la formule pour la resoudre; Est ce que qqn pou
Ptite question... [ par DeAtHCrAsH ]
Comment dois-je proceder pour mettre des composants sur les differentes feuille d'un tab control ? Et ceci sans MFC ni quoi que se soit du genre.... E
|
Derniers Blogs
[WP7] DYNAMICALLY CHANGE STARTUP PAGE[WP7] DYNAMICALLY CHANGE STARTUP PAGE par KooKiz
Let's say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the 'NavigationPage' attribute in the manifest file. But the manifest cannot be modified once the applicatio...
Cliquez pour lire la suite de l'article par KooKiz SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|