[Tutor] making math problems mmmm fun
max baseman
dos.fool at gmail.com
Tue Sep 11 00:28:23 CEST 2007
hello all this is a homework in math i dont need to program it but i
would like to :) so like any other time pleas dont just give a
answer tutorials or a explanation. i dont like to use script
something i dont understand :)
thanks
basically the problem is to find a bunch of ways to put 1,2,3,4,5
into different math problems to that equal 1-25, i haven't spent to
much time thinking about how to do this but i cant think of a way to
do it it without writing making the program rather long here is the
page from the book for the rules i will be working on this for the
next week or so thanks for any help :)
. you may use any of the four basic arithmetic operations-
addition, subtraction, multiplication, and division (according to the
order of operations rules). for example, 2+1x3-4 is a 1-2-3-4
expression for the number 1.
. you may use exponents. for example, 2² - 4 - 1 is a 1234 expression
for the number 3
. you may use radicals for EX: √4x2+1 is equal to 3 so 3+√4x2+1 is
a 1234 expression for 6
. you may use factorials for EX: 4! means 4x3x2x1 so 3+4!+1-2 is a
1234 expression for the number 26
. you may juxtapose two or more digits (that is put them next to
each other) to form a number such as 12. for example 43-12 is a 1234
expression for 31
. you may use parentheses and brackets to change the meaning of a
expression for example according to the rules of order of operations 1
+4x3² is a 1234 expression for 37. you can add parentheses and
brackets to get [(1+4)x3]² which is a 1234 expression for 225
. must use 1,2,3,4 exactly once
thanks for the help ill post if i find anything
More information about the Tutor
mailing list