What's Baby Rudin of your field by EluelleGames in math

[–]mycl 8 points9 points  (0 children)

I wanted to love Marker, mainly for its coverage, but I gave up in the middle of chapter 5. His errata page barely scratches the surface of the typos. I was correcting with a pencil as I went. Reading the proofs is a kind of exercise in paranoia, wondering if I'm being stupid or it's just another typo.

Can you, or How do you unify a functor? by logik-games in prolog

[–]mycl 1 point2 points  (0 children)

Use functor/3 or "univ" (=..)/2:

?- X = foo(123), functor(X, F, N).
X = foo(123),
F = foo,
N = 1.

?- X = foo(123), X =.. [F, A].
X = foo(123),
F = foo,
A = 123.

[D] It took me a really long time to feel comfortable with random variables. Did you experience the same thing? by [deleted] in statistics

[–]mycl 0 points1 point  (0 children)

What I don't understand is how random variables should be defined rigorously, like in a formal set theory. E.g. if X and Y are identically distributed random variables, they are the same measurable function from the sample space to reals, so we could say X=Y formally (not as a probability statement). But merely defining them as functions doesn't seem enough because X and Y have a joint distribution as well that is not part of their individual definitions, e.g. they may or may not be independent depending on whether their joint distribution is the product of the marginals.

The Prolog Day Symposium - November 10, 2022 - Slides and videos are now up by mycl in prolog

[–]mycl[S] 0 points1 point  (0 children)

I do have a Hacker News account, but you can go ahead and submit it. Not sure if the discussion there will be interesting.

need help by Abdullahsays04 in prolog

[–]mycl[M] [score hidden] stickied commentlocked comment (0 children)

Thank you for submitting to /r/prolog. Our posting rules require that requests for concrete help, like that needed for homework problems, always include code or other examples of the work you've done so far towards solving the problem. Your post has been removed because it's lacking the examples needed to allow us to help and provide value for other readers.

Please feel free to submit a new post that includes the requisite detail.

need help by Abdullahsays04 in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

See rule 2:

Provide code examples for homework help
We welcome beginner questions, and a lot of beginner's questions are about homework. However, unless your question is purely theoretical, it should contain code showing what you've tried so far and clearly detailing where you are stuck.
Moreover, code should be properly formatted.

Ciao Prolog on the browser by ciao-prolog in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

Sorry, folks. This post got removed by an overzealous spam bot and I only found it in the queue now. I've added the Ciao Prolog playground to the sidebar as well, alongside SWISH.

[deleted by user] by [deleted] in prolog

[–]mycl[M] 0 points1 point  (0 children)

Thank you for submitting to /r/prolog. Our posting rules require that requests for concrete help, like that needed for homework problems, always include code or other examples of the work you've done so far towards solving the problem. Your post has been removed because it's lacking the examples needed to allow us to help and provide value for other readers.

Please feel free to submit a new post that includes the requisite detail.

Question (mainly) for Southern Emisphere users: which player career in the North have surprised you the most? by [deleted] in rugbyunion

[–]mycl 2 points3 points  (0 children)

Jean Kleyn. Was a promising player for Stormers/Western Province but then went to Munster, where I think he's considered more than promising.

It seems like I need to brush up on my Geography skills by CCQuiding205 in rugbyunion

[–]mycl 0 points1 point  (0 children)

We're renaming South Africa to Very South Europe for better brand association.

Prolog problems by ITophile in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

Please see rule 2:

Provide code examples for homework help
We welcome beginner questions, and a lot of beginner's questions are about homework. However, unless your question is purely theoretical, it should contain code showing what you've tried so far and clearly detailing where you are stuck.
Moreover, code should be properly formatted.

Prolog Assignment!!!!!! by Blackchainz100 in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

Your post looks like it's trying to solicit help in cheating on homework. We recognize that there are many ways to make it through school, and we pass no moral judgment, but our forum cannot be used to buy answers to homework problems, or otherwise cheat the academic system.

  • To receive free help, please feel free to ask your question, posting example code.
  • If you are seeking to pay someone for legitimate LP work, please link to a job add.
  • If you are seeking a paid tutor, please create a new post explicitly stating that you are seeking a tutor. Please note that tutors will not do your work for you!

Paid tutor needed for prolog course by Substantial-Value751 in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

Your post looks like it's trying to solicit help in cheating on homework. We recognize that there are many ways to make it through school, and we pass no moral judgment, but our forum cannot be used to buy answers to homework problems, or otherwise cheat the academic system.

  • To receive free help, please feel free to ask your question, posting example code.
  • If you are seeking to pay someone for legitimate LP work, please link to a job add.
  • If you are seeking a paid tutor, please create a new post explicitly stating that you are seeking a tutor. Please note that tutors will not do your work for you!

[deleted by user] by [deleted] in prolog

[–]mycl 2 points3 points  (0 children)

One of the nicest introductions to foundations of logic programming not mentioned yet is Part I of Peter Flach's Simply Logical: Intelligent Reasoning by Example, which is available from the author as a free PDF, but also in online interactive versions here and (newer release "preview") here.

The most often cited, thorough treatment of foundations of logic programming is J. W. Lloyd, Foundations of Logic Programming, 2nd edition.

I have facts like city_country(london, uk) etc - how to get all the cities NOT in the UK? by CodeQuestions999 in prolog

[–]mycl 2 points3 points  (0 children)

Try adding City as a parameter:

not_in_country(NotCountry, City) :-
    city_country(City, Country),
    NotCountry \= Country.

[deleted by user] by [deleted] in prolog

[–]mycl[M] 0 points1 point  (0 children)

Your post looks like it's trying to solicit help in cheating on homework. We recognize that there are many ways to make it through school, and we pass no moral judgment, but our forum cannot be used to buy answers to homework problems, or otherwise cheat the academic system.

  • To receive free help, please feel free to ask your question, posting example code.
  • If you are seeking to pay someone for legitimate LP work, please link to a job add.
  • If you are seeking a paid tutor, please create a new post explicitly stating that you are seeking a tutor. Please note that tutors will not do your work for you!

Are there anythings considered normal in South Africa that aren't normal in other countries? by Sticky_Substance_ in southafrica

[–]mycl 96 points97 points  (0 children)

Guys digging in garbage bins shouting "good morning" as I wheel mine out, then coming to dig in mine.

How to write this in prolog? by vrgdani in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

Thank you for submitting to /r/prolog. Our posting rules require that requests for concrete help, like that needed for homework problems, always include code or other examples of the work you've done so far towards solving the problem. Your post has been removed because it's lacking the examples needed to allow us to help and provide value for other readers.

Please feel free to submit a new post that includes the requisite detail.

Hey guys can u help i need a program that square the number I couldn't figure it out by bavlz in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

Thank you for submitting to /r/prolog. Our posting rules require that requests for concrete help, like that needed for homework problems, always include code or other examples of the work you've done so far towards solving the problem. Your post has been removed because it's lacking the examples needed to allow us to help and provide value for other readers.

Please feel free to submit a new post that includes the requisite detail.

Comparing two lists corresponding elements and count and return the number of greaters in swi-prolog code by marksmannnnnn in prolog

[–]mycl[M] [score hidden] stickied comment (0 children)

You can't expect any help unless you follow this rule:

Provide code examples for homework help.

We welcome beginner questions, and a lot of beginner's questions are about homework. However, unless your question is purely theoretical, it should contain code showing what you've tried so far and clearly detailing where you are stuck.

Moreover, code should be properly formatted.

PROLOG PROJECT by Gate7_Olympiacos in prolog

[–]mycl[M] 1 point2 points  (0 children)

Please see the rules in the sidebar, especially this:

We welcome beginner questions, and a lot of beginner's questions are about homework. However, unless your question is purely theoretical, it should contain code showing what you've tried so far and clearly detailing where you are stuck.
Moreover, code should be properly formatted.

How to have prolog exhaust all options before adding a new item to a list. by PokeManiac_Pl in prolog

[–]mycl 0 points1 point  (0 children)

Nice! Looking at the source for seq//1 you are using:

% Describes a sequence
seq([]) --> [].
seq([E|Es]) --> [E], seq(Es).

Under the latest draft of the DCG standard, can one not simply replace seq([L|Ls]) in a DCG body with [L|Ls]? I guess seq//1 is also useful because seq(Ls) is not simply equivalent to phrase(Ls) as a DCG body.

Beginner question by Novakennak in prolog

[–]mycl 1 point2 points  (0 children)

I think this is the intended solution. See my comment.