ENGG1100|Term2|201415 题香港中文大學 The Chinese University of Hong Kong AND operation, example in real life You get a degree from CUhK if you take 123 units and your gpa is greater than 1.5 You may write a formula (X=take 123 units) AND (Y=GPA>1.5) then you can get a degree from CUHK (W) You must eat and drink in order to live -You may write a formula (X=eat )AND ( Y=drink then you can live(W Notation X WEXANDY V15.02.09 Introduction 11
ENGG1100 | Term 2 | 2014-15 AND operation, example in real life • You get a Degree from CUHK if you take 123 units and your GPA is greater than 1.5 – You may write a formula • (X=take 123 units) AND (Y=GPA>1.5) then you can get a Degree from CUHK (W) • You must eat and drink in order to live – You may write a formula • (X=eat ) AND (Y=drink) then you can live (W) V15.02.09 Introduction 11 X Y W=X AND Y Notation
ENGG1100|Term2|201415 题香港中文大學 The Chinese University of Hong Kong OR operation, example in real life If you live in mongkok you either take a bus or train to come to the chinese University You may write a formula (X=take bus)or (Y=take train then you can come to the University(W) You can ride on a bus if you pay cash or pay using octopus You may write a formula X=pay by cash or(y=pay by octopus then you can ride on the bus(w) Notation WEXOR Y V15.02.09 Introduction 12
ENGG1100 | Term 2 | 2014-15 OR operation, example in real life • If you live in Mongkok, you either take a bus or train to come to the Chinese University – You may write a formula • (X=take bus) or (Y=take train) then you can come to the University (W) • You can ride on a bus if you pay cash or pay using octopus – You may write a formula • (X=pay by cash) or (Y=pay by octopus) then you can ride on the bus (W) V15.02.09 Introduction 12 X Y W=X OR Y Notation
ENGG1100|Term2|201415 题香港中文大學 The Chinese University of Hong Kong NOT operation, example in real life I dont love you= not i love you You may write a formula NOT(X=l love you) means I don' t love you w) You are not rich not you are rich You may write a formula NOT (X=you are rich) that means you are poor w) Notation WENOT X V15.02.09 Introduction 13
ENGG1100 | Term 2 | 2014-15 NOT operation, example in real life • I don’t love you = Not (I love you) – You may write a formula • NOT (X=I love you) means I don’t love you (W) • You are not rich = NOT (you are rich) – You may write a formula • NOT(X=you are rich) that means you are poor (W) V15.02.09 Introduction 13 X W=NOT X Notation