Explain the code

15 views
Skip to first unread message

سیدمهدی سیدحسینی

unread,
Jun 5, 2018, 7:08:42 AM6/5/18
to SWI-Prolog
hello , i try to solve a Practice (append it) and find a resolve for it (append it).
but i don't
understand what happen in . Please describe the code for me .

what is op() in line 22 and 23 and what do this tow lines ? and how test and how use query for test in run ?
i know what happen in line 32 to 39 .
what is d() in line 41 to 51 ? and what do this lines?

photo_2018-06-05_15-27-12.jpg
Capture.JPG

Barb Knox

unread,
Jun 5, 2018, 10:38:52 PM6/5/18
to SWI-Prolog, سیدمهدی سیدحسینی
On 5/06/2018, at 23:08, سیدمهدی سیدحسینی <seyyedm...@gmail.com> wrote:

hello , i try to solve a Practice (append it) and find a resolve for it (append it).
but i don't
understand what happen in .

Please describe the code for me .

It’s not good.  But I expect you are wanting a different sort of description.


what is op() in line 22 and 23 and what do this tow lines ?

It is a mistake.  It would be OK if  op  were a variable, but SWI Prolog does not allow that.

and how test and how use query for test in run ?

I don’t understand.


i know what happen in line 32 to 39 .

Do you really?  What should happen with  rewrite(0^0, Result) ?
And what about  rewrite(0+0, Result) ?

what is d() in line 41 to 51 ? 

It is the differential operator:  d(F, X)  represents  df/dx.

and what do this lines?

I don’t understand.





-- 
---------------------------
|  BBB                b    \    Barbara at LivingHistory stop co stop uk
|  B  B   aa     rrr  b     |
|  BBB   a  a   r     bbb   |   ,008015L080180,022036,029037
|  B  B  a  a   r     b  b  |   ,047045,L014114L4.
|  BBB    aa a  r     bbb   |
-----------------------------

Reply all
Reply to author
Forward
0 new messages