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
Which of the following inequalities is correct?
Elina [12.6K]

Answer:

The last one

Step-by-step explanation:

3 0
2 years ago
Read 2 more answers
8000$ is invested in an account the yields 6% interest per year. After how many years will the account worth 13709.60$ if the in
ozzi

Answer:

After 9 years the account will be worth 13709.60$

Step-by-step explanation:

We are given the following in the question:

We are given the following in the question:

P = $8000

r = 6% = 0.046

n = 12

The compound interest is given by:

A = p\bigg(1+\dfrac{r}{n}\bigg)^{nt}

where A is the amount, p is the principal, r is the interest rate, t is the time in years.

Putting the values, we get,

13709.60 = 8000\bigg(1+\dfrac{0.06}{12}\bigg)^{12t}\\\\\dfrac{13709.60}{8000} = \bigg(1+\dfrac{0.06}{12}\bigg)^{12t}\\\\\Rightarrow 1.7137 = (1.005)^{12t}\\\Rightarrow t \approx 9

Thus, after 9 years the account will be worth 13709.60$

5 0
3 years ago
Read 2 more answers
The height of a stuntperson jumping off a building that is 20 m high is modeled by the equation h = 20 – 5t2, where t is the tim
Nostrana [21]

Answer:

\sqrt{2} - 1

Step-by-step explanation:

h = 20 – 5t2 = 15 -> t = 1

h = 20 – 5t2 = 10 -> t = \sqrt{2}

interval  \sqrt{2} - 1

8 0
2 years ago
Read 2 more answers
HELPPPP DUE SOON!!! WILL MARK BRAINLYIST AND 10 POINTS
larisa86 [58]

Answer:

688.7

Step-by-step explanation:

Top and Bottom

Area = 3/4 * pi * r^2

r = 6

Area = 3/4 * 3.14 * 6^2

Area =                                                               84.78

Don't round yet.

Vertical surface

Vertical surface = 3/4 * pi * d * h

d = 12 inches (the diameter)

Vertical surface = 3/4 * 3.14 * 12 * 15

Vertical surface =                                          423.9

Two inner faces

They are both rectangles

Area = 2 * L * W

L = 15

w=6

Area = 2 * 15 * 6                           <u>                  180</u>

Total                                                               688.68

Total = 688.7

7 0
2 years ago
To solve the equation 2(x - 1) = 8, you use the_______ to rewrite 2(x - 1) as 2x - 2.
erastova [34]

Answer:

the distributive property

6 0
3 years ago
Read 2 more answers
Other questions:
  • Can you check my answer?
    12·1 answer
  • Usan has a collection of 105 nickels and dimes. If the number of nickels is six times the number of​ dimes, how many nickels and
    11·1 answer
  • Find the area of a circle with a radius of 3
    11·2 answers
  • Use the discriminant to determine how many real number solutions exist for the quadratic equation −4x2 + 3x –28 = 0.
    7·1 answer
  • Forty more than the product of 2 and a number is twelve. What is the number?
    13·1 answer
  • Find the area of the given triangle.
    11·2 answers
  • Solve using elimination. x-2y=10 <br> 3x+y=-12
    5·1 answer
  • Is the square root of 1/4 a rational number
    7·1 answer
  • The baseball team has a double-header on Saturday. The probability that they will win both games is 34%. The probability that th
    15·1 answer
  • A.<br> Create a model to show 2 x 5.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!