SRL Archive - Other Scripts

Simple calculator


jhildy

2007-08-04 19:47:56

hey i have made a simple calculator and i know its not much but i need more ideas on how to improve it.

so just please post what i should do i plan on including complex formulas that are commonly used in algebra. so post what you think should go in.

Sp0rky

2007-08-04 19:55:36

You could make brackets so you can do more complex mathematical equations. But that would be far too easy and a waste of your time. Theres nothing more I think you can do to a calculator. That is a calculator. Can't add anythnig more to it, and anything else you could add to it would be easy.

Try making an rs experience calculator based on this equation:


Heres a javascript version if taht's easier for you.


<SCRIPT LANGUAGE="JavaScript">
<!--
document.close();
document.open();
document.writeln('Begin JavaScript output:');
document.writeln('<PRE>');

points = 0;
output = 0;
minlevel = 2; // first level to display
maxlevel = 200; // last level to display

for (lvl = 1; lvl <= maxlevel; lvl++)
{
points += Math.floor(lvl + 300 * Math.pow(2, lvl / 7.));
if (lvl >= minlevel)
document.writeln('Level ' + (lvl) + ' - ' + output + ' xp');
output = Math.floor(points / 4);
}

document.writeln('</PRE>');
document.close();
// -->
</SCRIPT>

My challenge to you :p

jhildy

2007-08-04 20:11:52

i was actually going to add that as my next feature.

Sp0rky

2007-08-04 20:25:00

ohh :o sexy. Well I hope I helped.

jhildy

2007-08-04 20:46:34

added check it out now.

Distort

2007-08-06 17:14:32

No 0?

jhildy

2007-08-07 17:41:09

lol wow thanks i didn't notice thats why i posted.