-4
$\begingroup$

I have not found the answer to this doubt of mine elsewhere, hence posting it here.
It may be a silly question but I just want to be sure :P
would be great if someone could help me out with this doubt!

$\endgroup$
2
  • $\begingroup$ It is generally explicitly mentioned if 'a' or 'b' is included or excluded. Otherwise, the set notation for open interval: (a,b) means neither 'a' nor 'b' is included. On the other hand [a,b) means 'a' is included and 'b' is not included. Likewise, you can use '[' or ')' accordingly. $\endgroup$ Commented Jun 21, 2020 at 6:08
  • $\begingroup$ @Inuyashayagami I see. but incase no brackets are given and nothing 'inclusive' or 'exclusive' given ? $\endgroup$
    – dagwood
    Commented Jun 21, 2020 at 13:01

1 Answer 1

0
$\begingroup$

If your talking about programming, most languages default to include and and not b unless explicitly corrected. If your talking about a math or computer science problem, the problem must state explicitly if it's included or not. If it is not mentioned, it's basically a 50/50, though I'm pretty sure it's generally accepted that if it is not mentioned. you can default to "inclusive".

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.