![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Jack Burton
![]() Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 38
Posts: 5,452
|
If Brother(John,Jack) and Father(Jack,James)
Then, Father(John,James) or Uncle(John,James) ?? |
![]() |
![]() |
#2 |
Emerald Dragon
![]() Join Date: May 1, 2001
Location: melbourne victoria australia
Age: 59
Posts: 960
|
Scant question. If Im reading this right you need a Do While statement. It'd help if I had the rest of the equation.
__________________
THERE CAN BE ONLY ONE!!! |
![]() |
![]() |
#3 |
Harper
![]() Join Date: October 6, 2001
Location: Iceland
Posts: 4,706
|
just when I thought I had seen every weird thread on Ironworks possible...
|
![]() |
![]() |
#4 | |
Jack Burton
![]() Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 38
Posts: 5,452
|
Quote:
If Brother(Jack,John) And Father(Jack,James) are both true then, which of these would logically follow: Father(John,James) or Uncle(John,James) |
|
![]() |
![]() |
#5 | |
Jack Burton
![]() Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 38
Posts: 5,452
|
Quote:
![]() |
|
![]() |
![]() |
#6 |
Harper
![]() Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 43
Posts: 4,774
|
There is no answer to this question.
If Father(jack, james) = true, does that indicate that jack is james father, or the reverse? There is no formal standard for this. My inclination would be towards the former, but thats down to programmer style.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" /> |
![]() |
![]() |
#7 | |
Red Dragon
![]() Join Date: March 1, 2001
Location: Holiday, FL
Age: 57
Posts: 1,507
|
Quote:
If Brother(Jack,John) And Father(Jack,James) are both true then, which of these would logically follow: Father(John,James) or Uncle(John,James)[/QUOTE]This is not a clearly thought out statement. You have two different variables from 2 different groups. It depends on how you program the relation. It sounds like Brother(Jack,John) and Father(Jack,James) are asking about 2 different people in a relationship that could possibly be the same person if viewed from 2 different perspectives. IE My brother is your father, which would make me your uncle. Is that what you are looking for? If that is the case: If Brother(John,James) & Father(Jack,James) Then Subvariable(unspecified)=Uncle(defined) ;Uncle(John,James) Else Subvariable(unspecified)=Uncle(undefined) ; Not = Uncle(John,James) [ 03-24-2003, 08:51 AM: Message edited by: Tobbin ]
__________________
![]() |
|
![]() |
![]() |
#8 |
Elminster
![]() Join Date: October 26, 2001
Location: Sterling Heights, MI, USA
Age: 47
Posts: 477
|
This is a proposition, not a question... and it's not even real psuedocode. You would first have to define the Brother(x,y), Father(x,y), and Uncle(x,y) {x and y are nondistinct people} functions. Then after picking one or the other conclusions, you would have either a True statement of a False statement. To make it pseudocode, you'd need a "while," "for," "do," "begin," etc. statement.
Grossman, Jerold W. Discrete Mathematics: An Introduction to Concepts, Methods, and Applications. Macmillan Publishing Company. New York. 1990. Chapters 1 & 4. P.S. yes, this is the same pseudocode used in computer applications
__________________
IW resident science and mathematics teacher<br /><br />\"No, no, you\'re not thinking; you\'re just being logical.\"<br />-Niels Bohr |
![]() |
![]() |
#9 |
Red Dragon
![]() Join Date: March 1, 2001
Location: Holiday, FL
Age: 57
Posts: 1,507
|
Depending on what level of effect the undefined variables would affect, an if statement could work as well. This is a valid pseudocode operator as not all equations need a loop effect. The loop effect can be placed around the if statement if a re-iteration were needed. Should there be more than 3 outcomes though, another form of loop would make more sense. Possibly a case statement.
__________________
![]() |
![]() |
![]() |
#10 | |
Jack Burton
![]() Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 38
Posts: 5,452
|
Quote:
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Key Code Question for NWN DIamond | Stonewarrior | Neverwinter Nights 1 & 2 Also SoU & HotU Forum | 2 | 08-12-2006 02:03 PM |
Pseudo Paladin | Roboghost | Icewind Dale | Heart of Winter | Icewind Dale II Forum | 3 | 05-09-2006 04:05 PM |
question about UBB code or HTML | TheThing | General Conversation Archives (11/2000 - 01/2005) | 9 | 03-31-2002 05:07 PM |
If U had 2 pick another´s Pseudo.... | Yorick | General Discussion | 26 | 03-12-2001 05:33 PM |
Can't Get To The Naga (some pseudo-spoiler text here) | Talcire | Wizards & Warriors Archives | 1 | 10-22-2000 09:09 PM |