RE: [racket-users] Re: recursive definition of a PROPOSITION
Do you mean the following? (define (a) (case (random 6) [(0) (string-append "P" "→" (a))] [(1) (string-append "R" "↔" (a))] [(2) (string-append "T" "∧" (a))] [(3) (string-append "Z" "⊕" (a))] [(4) (string-append "S" "q" (a))] [(5) "" ])) Jos -Original Message- From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On Behalf Of Aysenur Türk Sent: viernes, 19 de febrero de 2016 13:24 To: Racket Users Subject: [racket-users] Re: recursive definition of a PROPOSITION (define (a) (case (random 6) [(0) (string-append "P" (a)"→" )] [(1) (string-append "R" (a) "↔")] [(2) (string-append "T" (a)"∧" ) ] [(3) (string-append "Z" (a)"⊕")] [(4) (string-append "S" (a) "q")] [(5) "" ])) (a) "RPRZTZPRZPZT∧⊕→⊕↔→⊕∧⊕↔→↔" "TPTZ⊕∧→∧" I tried it and found that but it's not work that i want.the propositions and variables order wrong i want it like that "P↔Q→ R ∧ S ⊕ T¬Y ∨ Z ".How can fix it? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Re: recursive definition of a PROPOSITION
You are not designing your code. You’re guessing. Is that what you want? > On Feb 19, 2016, at 7:23 AM, Aysenur Türkwrote: > > (define (a) > (case (random 6) >[(0) (string-append "P" (a)"→" )] >[(1) (string-append "R" (a) "↔")] >[(2) (string-append "T" (a)"∧" ) ] >[(3) (string-append "Z" (a)"⊕")] >[(4) (string-append "S" (a) "q")] >[(5) "" ])) > > > > (a) > > > "RPRZTZPRZPZT∧⊕→⊕↔→⊕∧⊕↔→↔" > "TPTZ⊕∧→∧" > > I tried it and found that but it's not work that i want.the propositions and > variables order wrong i want it like that "P↔Q→ R ∧ S ⊕ T¬Y ∨ Z ".How can fix > it? > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.