Arithmetic and Relational Operators in Prolog

preview_player
Показать описание
This video explains what are arithmetic and relational operators in prolog and how they work by giving examples in SWI-Prolog IDE. Please SUBSCRIBE in order to help us.If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
Рекомендации по теме
Комментарии
Автор

At 3:57, should it not be if Y = 1901 then A is 1900 and B is 1950? So it should be 1901 <= 1950 and 1901 >= 1900. As comparison is Y >= A, Y =< B.

Shri
Автор

Nice explaination sir👌👌👌..plz upload more videos on prolog

irshadali
Автор

population(china, 100).
population(india, 85).
population(usa, 30).
population(germany, 9).


area(china, 10).
area(india, 4).
area(usa, 12).
area(germany, 2).

density(X, Y):-population(X, Pop),
area(X, Ar),
Y is Pop/Ar.

evgeniirooznev
Автор

please add these codes in the descriptions

asheerali
Автор

reigns(ram, 1900, 1950).
reigns(mike, 1951, 1970).
reigns(dilshan, 1986, 1985).
reigns(ravi, 1986, 2010).

ruler(X, Y):-reigns(X, A, B),
Y>=A,
Y=<B.

evgeniirooznev