Ask Your Question
0

implication

asked 12 years ago

sage_learner gravatar image

updated 10 years ago

FrédéricC gravatar image

Hello !

I wish to know how implication works in sage. In mathematica "Implies[True, False]" gives true.

In sage I wrote "true.implies(false)" it gives attribute error : "'bool' object has no attribute implies"

May I know How I should use implies in sage ?

Thanks.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

Eviatar Bach gravatar image

updated 12 years ago

Hello,

Shouldn't it return false if the proposition is true and the conclusion false (http://en.wikipedia.org/wiki/Material...

Here's how to use it in Sage:

sage: f = sage.logic.propcalc.formula('p->q')
sage: f.evaluate({'p':True, 'q':False})  
False
Preview: (hide)
link

Comments

1

Thank you. Yes you are right , it is my mistake. Mathematics gives False for that implication.

sage_learner gravatar imagesage_learner ( 12 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 12 years ago

Seen: 580 times

Last updated: Jan 12 '13