1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Molodets [167]
3 years ago
6

Suppose that Prolog facts are used to define the pred- icates mother(M, Y) and father(F, X), which represent that M is the mothe

r of Y and F is the father of X, re- spectively. Give a Prolog rule to define the predicate grandfather(X, Y), which represents that X is the grand- father of Y. [Hint: You can write a disjunction in Prolog either by using a semicolon to separate predicates or by putting these predicates on separate lines.]
Mathematics
1 answer:
VikaD [51]3 years ago
7 0

Answer and Explanation:

The Prolog rule expresses that logical implication (:-) describes the relationship between facts.

Prolog expressions are containing truth-functional symbols, which have the same intervention as in predicate calculus.

For example:  

English Predicate calculus prolog

and ^ ,

or v ;

By using information, given in the question,

We can make prolog:

Grandfather(X, Y)  :-mother(M,Y), father(X,M); father (F, Y), father(X,F)

Prolog (:- ) means define,

Prolog (,) represents a conjunction

And

Prolog (;) represent a disjunction

You might be interested in
How could you rewrite (-3 + 5) + 8 + (-1)
vagabundo [1.1K]

(-3 + 5) + 8 + (-1)=

2 + 8 - 1 =

= 9

7 0
2 years ago
Joey is 5 years less than three times the age of his son. Joey is 43 years old.
Vikki [24]

Answer:

amogus

Step-by-step explanation:

6 0
3 years ago
Someone please help
KIM [24]

Answer:

Step-by-step explanation:

Exponential function representing final amount with compound interest compounded continuously,

A=Pe^{rt}

Here, A = Final amount

P = principal amount

r = Rate of interest

t = Duration of investment

For P = $9600

r = 6%

A = 2 × 9600 = $19200

By substituting these values in the formula,

19200=9600(e)^{0.06\times t}

2=e^{0.06t}

ln(2)=ln(e^{0.06t})

ln(2) = 0.06t

t = \frac{0.693147}{0.06}

t = 11.55245

t ≈ 11.5525 years

Any amount will get doubled (with the same rate of interest and duration of investment) in the same time.

Therefore, $960000 will get doubled in 11.5525 years.

6 0
3 years ago
If F(x) and G(x) are two functions such that F(G(x)) = x then F(x) and G(x) are ..?
lana [24]
They are inverse functions though to be completely thorough your teacher should have also put g(f(x)) = x as well. Though I can see what your teacher is aiming for at least.

The idea is that whatever the output of g(x) is, it's plugged into f(x) and the initial input is the result. So g(x) takes a step forward and f(x) takes a step back undoing everything g(x) did. Which is exactly what an inverse operation does. 
4 0
2 years ago
Read 2 more answers
87/100 in simplest form
Paladinen [302]

The fraction Is already in its simplest form :)


They do not have any common factors

6 0
2 years ago
Other questions:
  • The area of a rectangle is 96 in ^ the length is 8 inches find the perimeter of the rectangle show all work
    8·1 answer
  • What is the number ???
    11·2 answers
  • 10% of what number is 300?
    10·1 answer
  • WILL GIVE A BRAINLEST<br><br> Which piecewise relation defines a function?
    9·2 answers
  • What is the x-coordinate of the red point
    10·2 answers
  • Is it complementary
    15·2 answers
  • A store has a 40% off sale on headphones. With this discount, the price of one pair of headphones is $36.
    6·2 answers
  • Solve each inequality below using the Addition principle. Draw a graph of each solution set.
    6·1 answer
  • A biologist measured the lengths of hundreds of cuckoo bird eggs. Use the relative frequency distribution below to answer the qu
    8·1 answer
  • 5. Calculate dimension: (A)
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!