Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: if statement question

by sundialsvc4 (Abbot)
on Dec 14, 2012 at 04:30 UTC ( #1008769=note: print w/replies, xml ) Need Help??

in reply to if statement question

Obviously, the question here .. if there is a question here .. is “to what extent is the computer’s actual response to this statement, as-written, likely to be a surprise?”     If you can say with confidence that the possible values of the variable in question fall into a particular scope, then you have no surprise, hence no problem.   If, on the other hand, there might be certainty, then a more stringent way of expressing what you actually want the computer to do, might be better at preventing “those damnable surprises.”   There really isn’t enough in the OP to say more.   But we do know that, in the end, the computer will do what you said, not what you meant.   Hence, the most-precise way of expressing “what you meant” is often a way to conserve your ever more precious hair-follicles.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008769]
[oiskuu]: yergh, <code> tags... [$top_height .. $node_height]
[Eily]: Discipulus by demonstrate I suppose you mean simulate with perl?
[Eily]: the demonstration itself is fairly easy. The number of paths on a node is the sum of the numbers of paths to the two nodes above (or one node above on the edges of the triangle)
[Eily]: since the value of a node is also the sum from the two nodes above, you just have to demonstrate that the equality is true at the top of the triangle
[Discipulus]: yes Eily, thanks oiskuu but i dont get it.. ;=( maybe I'll ask a SOPW
[LanX]: all combinations with same amount of left and right?
[Eily]: if you want to store in a structure with the coordinates as key, arrays might do, since the keys are going to be 0..n
[LanX]: (Pascale path)
[Eily]: paths like that
[Discipulus]: yes Eily++ (very keen) I want to integrate my project with a 17th experiments. I want to colorize in sequence all paths

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2018-03-19 11:16 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.