jennico Posted July 13, 2008 Share Posted July 13, 2008 (edited) Hello world,i was wondering why this hasn't been done before, so i did it.among them: pi, e, c, g, h, mol, log10, avogadro, coulomb, boltzmann, faraday, fermi, fine structure, loschmidt, planck (several constants), newton, rydberg, von klitzing, catalan, golden mean, primes, tribonacci, ...additions welcome ( now ~ 500 constants exactly 544 entries ).j.Edit: made a second version containig astronomical constants, now 544 constantsin raw text (commented) you can find biochemical constants (elementaries), unit conversions and some energy constants.first version downloads: 50NatureConstants.zip Edited July 15, 2008 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Andreik Posted July 13, 2008 Share Posted July 13, 2008 Hello world,i was wondering why this hasn't been done before, so i did it.additions welcome ( now ~ 500 constants ).j.I like your idea but names of constants it`s too long, find some short names. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 (edited) definitely : no !!! when you abbreviate the name you will never find them again. furthermore, the most important are listed with alternative names. Edited July 13, 2008 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
ludocus Posted July 13, 2008 Share Posted July 13, 2008 What are these things for?and I agree the names are much too long! Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 (edited) e.g. pi = Ratio of the circumference of a circle to its diameter. do you really want lessons in physics from me ??? just google it, please j. Edited July 13, 2008 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Andreik Posted July 13, 2008 Share Posted July 13, 2008 e.g. pi = Ratio of the circumference of a circle to its diameter.do you really want lessons in physics from me ??? just google it, pleasej.I just said that if is possible to find a short name but the name not to be ambiguous therefore bugger up names. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 13, 2008 Developers Share Posted July 13, 2008 (edited) I just said that if is possible to find a short name but the name not to be ambiguous therefore bugger up names.No, you basically TOLD him to change the long names to shorter names. There is a slight difference between "I like your idea but names of constants it`s too long, find some short names." and "I like your idea but maybe you could see if the names could be made shorter".Jos Edited July 13, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 (edited) look into your include directory: $__SECURITYCONTANT_FORMAT_MESSAGE_FROM_SYSTEM = 4096 $__WINAPCONSTANT_DISPLAY_DEVICE_MIRRORING_DRIVER = 8 and i am pleased to repeat: furthermore, the most important are listed with alternative names. just an excerpt from the script: expandcollapse popup; Constants:{Mathematical constants} ;------------------------------------------------------------------------------ Global Const $NAT_Pi = 3.1415926535897932384626433832795 ; {Pi} Global Const $NAT_PiOn2 = 1.5707963267948966192313216916398 ; {Pi / 2} Global Const $NAT_PiOn3 = 1.0471975511965977461542144610932 ; { Pi / 3} Global Const $NAT_PiOn4 = 0.78539816339744830961566084581988 ; {Pi / 4} Global Const $NAT_Deg = 57.295779513082320876798154814114 ; {180 / Pi} Global Const $NAT_Bernstein = 0.2801694990238691330364364912307 ; {Bernstein constant} Global Const $NAT_Cbrt2 = 1.2599210498948731647672106072782 ; {CubeRoot(2)} Global Const $NAT_Cbrt3 = 1.4422495703074083823216383107801 ; {CubeRoot(3)} Global Const $NAT_Cbrt10 = 2.1544346900318837217592935665194 ; {CubeRoot(10)} Global Const $NAT_Cbrt100 = 4.6415888336127788924100763509194 ; {CubeRoot(100)} Global Const $NAT_CbrtPi = 1.4645918875615232630201425272638 ; {CubeRoot(PI)} Global Const $NAT_Catalan = 0.9159655941772190150546035149324 ; {Catalan constant} Global Const $NAT_Sqrt2 = 1.4142135623730950488016887242097 ; {Sqrt(2)} Global Const $NAT_Sqrt3 = 1.7320508075688772935274463415059 ; {Sqrt(3)} Global Const $NAT_Sqrt5 = 2.2360679774997896964091736687313 ; {Sqrt(5)} Global Const $NAT_Sqrt10 = 3.1622776601683793319988935444327 ; {Sqrt(10)} Global Const $NAT_SqrtPi = 1.7724538509055160272981674833411 ; {Sqrt(Pi)} Global Const $NAT_Sqrt2Pi = 2.506628274631000502415765284811 ; {Sqrt(2 * Pi)} Global Const $NAT_TwoPi = 6.283185307179586476925286766559 ; {2 * Pi} Global Const $NAT_ThreePi = 9.4247779607693797153879301498385 ; {3 * Pi} Global Const $NAT_e = 0.69314718055994530941723212145818 ; {nat. log.} Global Const $NAT_Ln2 = 0.69314718055994530941723212145818 ; {Ln(2)} Global Const $NAT_Ln10 = 2.3025850929940456840179914546844 ; {Ln(10)} Global Const $NAT_LnPi = 1.1447298858494001741434273513531 ; {Ln(Pi)} Global Const $NAT_Log2 = 0.30102999566398119521373889472449 ; {LogBase10(2)} Global Const $NAT_Log3 = 0.47712125471966243729502790325512 ; {LogBase10(3)} Global Const $NAT_LogPi = 0.4971498726941338543512682882909 ; {LogBase10(Pi)} Global Const $NAT_LogE = 0.43429448190325182765112891891661 ; {LogBase10(NConst)} Global Const $NAT_NConst = 2.7182818284590452353602874713527 ; {Natural constant; exp(1)} Global Const $NAT_hLn2Pi = 0.91893853320467274178032973640562 ; {Ln(2*Pi)/2} Global Const $NAT_inv2Pi = 0.159154943091895 ; {0.5 / Pi} Global Const $NAT_TwoToPower63 = 9223372036854775808.0 ; {2^63} Global Const $NAT_GoldenMean = 1.618033988749894848204586834365638 ; {GoldenMean} Global Const $NAT_EulerMascheroni = 0.5772156649015328606065120900824 ; {Euler GAMMA} ; Constants:{Certain physical constants expressed in SI units} ;------------------------------------------------------------------------------ Global Const $NAT_Amu = 1.6606e-27 ; {Atomic mass unit constant (kg)} Global Const $NAT_Avog = 6.0225e23 ; {Avogadro constant (mol-1)} Global Const $NAT_Boltz = 1.3805e-23 ; {Boltzmann constant (J K-1)} Global Const $NAT_ECharge = 1.602189e-19 ; {Electron charge (C)} Global Const $NAT_EMass = 9.11e-31 ; {Electron mass (kg)} Global Const $NAT_EVolt = 1.602e-14 ; {Electron volt (J)} Global Const $NAT_Farad = 96500 ; {Faraday constant (C mol-1)} Global Const $NAT_Gas = 8.314 ; {Gas constant (J mol-1 K-1)} Global Const $NAT_Neutron = 1.6748e-27 ; {Neutron mass (kg)} Global Const $NAT_Planck = 6.626e-34 ; {Planck constant (Js)} Global Const $NAT_Proton = 1.6725e-27 ; {Proton mass (kg)} Global Const $NAT_Light = 2.9979e8 ; {Speed of light (m s-1)} Global Const $NAT_Gravity = 9.80665 ; {Gravitational acceleration (m s-2)} Global Const $NAT_Pressure = 101325 ; {Normal atmospheric pressure (N m-2)} Global Const $NAT_Stefan = 5.67032e-8 ; {Stefan-Boltzmann constant (W m-2 K-4)} Global Const $NAT_Bohr = 5.2917706e-11 ; {Bohr radius (m)} so guys, please read my script first. if you want it even shorter, make it yourself. j. Edited July 13, 2008 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Andreik Posted July 13, 2008 Share Posted July 13, 2008 (edited) No, you basically TOLD him to change the long names to shorter names. There is a slight difference between "I like your idea but names of constants it`s too long, find some short names." and "I like your idea but maybe you could see if the names could be made shorter".JosAnd what is first idea if someone told you that like your idea but names is too long?For me, is to find a pragmatic name that will be more easy to use and your code to be more comprehensible.Look at post #8. In my view it`s more easy to use, more better.And sorry for my bad english. Edited July 13, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 Andreik, the short names have already been in the script. so your comments are redundant. j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Andreik Posted July 13, 2008 Share Posted July 13, 2008 Yes, now I start to write some physics simulators. Thanks for constants. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 Yes, now I start to write some physics simulators. Thanks for constants.muttley now you got it !i think with all these constants you will even be able to simulate a nuclear plant or a landing on jupiter. (ah, i have to add astronomic constants ! ...)even for the script kiddies here looking for youtubedownloadcenters or starcraftbots this script might be useful for school exercises.j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Andreik Posted July 13, 2008 Share Posted July 13, 2008 muttley now you got it !i think with all these constants you will even be able to simulate a nuclear plant or a landing on jupiter. (ah, i have to add astronomic constants ! ...)even for the script kiddies here looking for youtubedownloadcenters or starcraftbots this script might be useful for school exercises.j.Maybe I write a script that simulate relation between particles and warmth. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 cool ! so you really are a scientist, not a script kiddy. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
GEOSoft Posted July 13, 2008 Share Posted July 13, 2008 I don't see where the variables names are too long anyway. We certainly have longer names than these in some of the AutoIt Constants files. What makes the lines long is the accuracy (number of decimal places) and that is a good thing. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 thanx george i will defend you, too, when i get an occasion. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Andreik Posted July 13, 2008 Share Posted July 13, 2008 cool ! so you really are a scientist, not a script kiddy.From this year I will start learn physics at university. muttley When the words fail... music speaks. Link to comment Share on other sites More sharing options...
monoceres Posted July 13, 2008 Share Posted July 13, 2008 This will come in handy, thanks! muttley Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
AlmarM Posted July 13, 2008 Share Posted July 13, 2008 This one is freaky o.o expandcollapse popupGlobal Const $NAT_STR_Golden = "1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893 9113748475408807538689175212663386222353693179318006076672635443338908659593958290563832266131992829 0267880675208766892501711696207032221043216269548626296313614438149758701220340805887954454749246185 6953648644492410443207713449470495658467885098743394422125448770664780915884607499887124007652170575 1797883416625624940758906970400028121042762177111777805315317141011704666599146697987317613560067087 4807101317952368942752194843530567830022878569978297783478458782289110976250030269615617002504643382 4377648610283831268330372429267526311653392473167111211588186385133162038400522216579128667529465490 6811317159934323597349498509040947621322298101726107059611645629909816290555208524790352406020172799 7471753427775927786256194320827505131218156285512224809394712341451702237358057727861600868838295230 4592647878017889921990270776903895321968198615143780314997411069260886742962267575605231727775203536 1393621076738937645560606059216589466759551900400555908950229530942312482355212212415444006470340565 7347976639723949499465845788730396230903750339938562102423690251386804145779956981224457471780341731 2645322041639723213404444948730231541767689375210306873788034417009395440962795589867872320951242689 3557309704509595684401755519881921802064052905518934947592600734852282101088194644544222318891319294 6896220023014437702699230078030852611807545192887705021096842493627135925187607778846658361502389134 9333312231053392321362431926372891067050339928226526355620902979864247275977256550861548754357482647 1814145127000602389016207773224499435308899909501680328112194320481964387675863314798571911397815397 8074761507722117508269458639320456520989698555678141069683728840587461033781054443909436835835813811 3116899385557697548414914453415091295407005019477548616307542264172939468036731980586183391832859913 0396072014455950449779212076124785645916160837059498786006970189409886400764436170933417270919143365 0137157660114803814306262380514321173481510055901345610118007905063814215270930858809287570345050780 8145458819906336129827981411745339273120809289727922213298064294687824274874017450554067787570832373 1097591511776297844328474790817651809778726841611763250386121129143683437670235037111633072586988325 8710336322238109809012110198991768414917512331340152733843837234500934786049792945991582201258104598 2309255287212413704361491020547185549611808764265765110605458814756044317847985845397312863016254487 6114852021706440411166076695059775783257039511087823082710647893902111569103927683845386333321565829 6597731034360323225457436372041244064088826737584339536795931232213437320995749889469956564736007295 9998391288103197426312517971414320123112795518947781726914158911779919564812558001845506563295285985 9100090862180297756378925999164994642819302229355234667475932695165421402109136301819472270789012208 7287361707348649998156255472811373479871656952748900814438405327483781378246691744422963491470815700 7352545707089772675469343822619546861533120953357923801460927351021011919021836067509730895752895774 6814229543394385493155339630380729169175846101460995055064803679304147236572039860073550760902317312 5016132048435836481770484818109916024425232716721901893345963786087875287017393593030133590112371023 9171265904702634940283076687674363865132710628032317406931733448234356453185058135310854973335075996 6778712449058363675413289086240632456395357212524261170278028656043234942837301725574405837278267996 031739364013287627701243679831144643694767053127249241047167001382478312865650649343418039004" -AlmarM- Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
jennico Posted July 13, 2008 Author Share Posted July 13, 2008 be glad to have it now. now you can pretend to know what the golden mean is. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now