Significant Figure Calculator
Here is a little calculator I wrote while I was at a conference this week. Nothin fancy but it will calculate a mathematical equation while taking into account the significant figures and precision of each number in the equation, rounding the final answer to the same precision as the number with the least precision in the equation.
http://mphwebsystems.com/SignificantFigureCalc/index.php
Enjoy!
CMS Database Design
Hi all, it has been a while since I posted something new. I have been on a trip fixing up a house, but hey! I have been getting lots of programming in during my free time.
I think I have pretty much finalized the database design for the Competition Management System that is under development. Here is an image:
cms_db.jpg
Everything grouped under Registered Competition Tables basically all depends on a single competition entry into the Competitions table. Notice the separate accounts table, every type of account, except for admins, is linked from that table to either a Competition entry, a school entry or a team entry via the links table. This also allows for multiple links from a single account.
CMS Developement has begun!
I have started work on CMS (Competition Management System). Its going to be a cool system! I am implementing Object Orientation into the PHP, like say you call a method and send that method a SQL script, it executes that script, and hands you back an object. It just puts another abstraction layer of the database communication.
If you would like to preview this system, while it is being developed, add a comment below, and I will get back with you!
Chat bot functions
So in this post, I would like to give you a description of each function in the chat bot, and the way each function works.
First we will go over the 2 simple functions.
!say
!is
Now we have about 6 functions that allow conversion between value representation.
!decbin
!dechex
!hexdec
!hexbin
!bindec
!binhex
Now, here are the 2 “coolest” functions.
!calc
- Abs(number): Gives the absolute value of number.
- Acos(number): Returns the angle whose cosine is the specified number.
- Asin(number): Returns the angle whose sine is the specified number.
- Atan(number): Returns the angle whose tangent is the specified number.
- Atan2(number1, number2): Returns the angle whose tangent is the quotient of two specified numbers.
- BigMul(number1, number2): Returns the angle whose tangent is the quotient of two specified numbers.
- Ceiling(number): Overloaded. Returns the smallest integer greater than or equal to the specified number.
- Cos(number): Returns the cosine of the specified angle.
- Cosh(number): Returns the hyperbolic cosine of the specified angle.
- Exp(number, power): Returns e raised to the specified power.
- Floor(number): Returns the largest integer less than or equal to the specified number.
- IEEERemainder(number1, number2): Returns the remainder resulting from the division of a specified number by another specified number.
- Log(number): Returns the logarithm of a specified number.
- Log10(number): Returns the base 10 logarithm of a specified number.
- Max(number1, number2): Returns the larger of two specified numbers.
- Min(number1, number2): Returns the smaller of two numbers.
- Pow(number, power): Returns a specified number raised to the specified power.
- Round(number, [decimalplaces]): Rounds a value to the nearest integer or specified number of decimal places.
- Sign(number): Returns a value indicating the sign of a number.
- Sin(number): Returns the sine of the specified angle.
- Sinh(number): Returns the hyperbolic sine of the specified angle.
- Sqrt(number): Returns the square root of a specified number.
- Tan(number): Returns the tangent of the specified angle.
- Tanh(number): Returns the hyperbolic tangent of the specified angle.
These are the values you can use.
- E: Represents the natural logarithmic base, specified by the constant, e.
- PI: Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.
!factor
That is all the current functions for right now, I will definitely add more functions, including an actually chat engine. Stay tuned!
Chat bot
If you go into the chat room on http://www.mphwebsystems.com/chat.php, you will be greeted by someone named Moderator. That person is actually a bot. It basically just connects to the server and welcomes new people, and also will Moderate the channel to keep all of the chat clean. If somebody where to come into the chat room and start cussing, Moderator would immediately kick them out. I am going to update his Profanity system to actually support bans…say you have been kicked out three times for cussing, Moderator would then put a ban on you for 15 minutes.
I am also in the process of developing an AI chat engine for Moderator…so he can interact with people in the chat room.
Development of CMS (Competition Management System) begins next week!!
