You are not logged in.
Hi simy202,
I guess you haven't read about operator precedence.
Please refer this: http://www.php.net/manual/en/language.operators.precedence.php
echo((1 + 2 + $var1) * $var2) / 2 - 5;
This evaluates to : (((1 + 2 + 3)*4)/2) - 5 = ((6*4)/2) - 5 = 12 - 5 = 7.
If you want it to be -8, rewrite it as:
echo((1 + 2 + $var1) * $var2) / (2 - 5);
The left of '=' sign is called Left hand side, not the left of '/' sign...
Hi bobbym,
I was simply trying to verify for different n values.
Here is the answer I believe to be true.
Hi Howardroark,
Yes, minimum is 336. I was wondering whether the answer will be the same for any n ≥ 336, and I'm sure bobbym checks it before posting the questions. It is relatively easy for n = 336.
Hi bobbym,
Here is the newest killer:
When n dice are rolled, the probability of obtaining a sum of 2011 is the same as the probability of obtaining a sum of s. What is the smallest value of s?
I was asking about this, you posted 10 days ago...
For the n dice problem, is it possible to do without knowing the value of n? Will it hold true for every n?
Hi,
I observe that carmetal is better at plotting implicit equations...
But figure does not scale well, the sine curve looks like a line, unless I multiply it by a constant and zoom out.
Anyway, I really appreciate both geogebra and CaR. I find Geogebra easier to use.
Hi bobbym,
I haven't used the softwares in depth. Hence I can't tell which has better features!
Can I plot trigonometric functions in any of them?
Oh good!
I see, you have customized it. I have it installed as well.
Check this out as well: http://processing.org/
Ah, nice! One more lesson for me not to go with intuition! My thought gave me about .05 extra.
Which software did you use for the diagram?
CaRmetal is another interactive geometry software. It looks neat. It can even plot implicit fuctions.
Check it out: http://db-maths.nuxit.net/CaRMetal/index_en.html
thank you:)
Hi Mariner,
If you are comfortable with usual multiplication, go ahead by converting mins to hrs, and multiply.
E.g. D = 72km/h * (5 + 24/60)h = 360 + 144/5 = 388.8km
Make sure about the units.
If you want a fast way, learn "Vedic mathematics".
Hi bobbym,
Ok, I'll try
Hi bobbym,
There may be people who know and choose not to post the same solution again. They may post a solution if they find another way of solving it...
Thanks bobbym,
Nice problem on tetrahedral numbers...
Yes bobbym, really so many of them.
It must be the first place to go to know a function!
Hi,
I came across a list of formulas summarised in wolfram's site: http://functions.wolfram.com/IntegerFunctions/StirlingS2/
Hi,
hmmm, I'll follow the advice this time.
Me modest, humbug! Nah, no one has read any of it.
This may be false!!