Thread[] with Circle[]. âToo many arguments given for Circlesâ but works fine. Bug of Mathematica?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am using Mathematica 11.3.0.0, 64 bit.
Here is my code:
Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]
Here is code as it looks in a notebook:
On mouseover on , 1, 0
:
But when I evaluate that code I am getting the right output:
Question:
Why , 1, 0
is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax expression-manipulation
add a comment |Â
up vote
1
down vote
favorite
I am using Mathematica 11.3.0.0, 64 bit.
Here is my code:
Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]
Here is code as it looks in a notebook:
On mouseover on , 1, 0
:
But when I evaluate that code I am getting the right output:
Question:
Why , 1, 0
is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax expression-manipulation
Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can useMapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
instead.
â Henrik Schumacher
2 hours ago
1
SyntaxInformation[Circle]
gives"ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]
. That is, the first argument (if it is used) should be a list of two elements.
â kglr
2 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
2 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am using Mathematica 11.3.0.0, 64 bit.
Here is my code:
Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]
Here is code as it looks in a notebook:
On mouseover on , 1, 0
:
But when I evaluate that code I am getting the right output:
Question:
Why , 1, 0
is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax expression-manipulation
I am using Mathematica 11.3.0.0, 64 bit.
Here is my code:
Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]
Here is code as it looks in a notebook:
On mouseover on , 1, 0
:
But when I evaluate that code I am getting the right output:
Question:
Why , 1, 0
is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax expression-manipulation
graphics front-end syntax expression-manipulation
edited 1 hour ago
Kubaâ¦
99.9k11194493
99.9k11194493
asked 2 hours ago
vasili111
29517
29517
Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can useMapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
instead.
â Henrik Schumacher
2 hours ago
1
SyntaxInformation[Circle]
gives"ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]
. That is, the first argument (if it is used) should be a list of two elements.
â kglr
2 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
2 hours ago
add a comment |Â
Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can useMapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
instead.
â Henrik Schumacher
2 hours ago
1
SyntaxInformation[Circle]
gives"ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]
. That is, the first argument (if it is used) should be a list of two elements.
â kglr
2 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
2 hours ago
Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use
MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
instead.â Henrik Schumacher
2 hours ago
Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use
MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
instead.â Henrik Schumacher
2 hours ago
1
1
SyntaxInformation[Circle]
gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]
. That is, the first argument (if it is used) should be a list of two elements.â kglr
2 hours ago
SyntaxInformation[Circle]
gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]
. That is, the first argument (if it is used) should be a list of two elements.â kglr
2 hours ago
2
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
2 hours ago
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
2 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
a valid input? I hope it is clear it is not.
Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]
evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.
Related:
Why is this semicolon in red?
add a comment |Â
up vote
1
down vote
SyntaxInformation[Circle]
"ArgumentsPattern" -> Optional[_, _], ., Optional[, _]
That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
a valid input? I hope it is clear it is not.
Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]
evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.
Related:
Why is this semicolon in red?
add a comment |Â
up vote
1
down vote
Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
a valid input? I hope it is clear it is not.
Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]
evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.
Related:
Why is this semicolon in red?
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
a valid input? I hope it is clear it is not.
Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]
evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.
Related:
Why is this semicolon in red?
Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
a valid input? I hope it is clear it is not.
Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]
evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.
Related:
Why is this semicolon in red?
edited 1 hour ago
community wiki
2 revs
Kuba
add a comment |Â
add a comment |Â
up vote
1
down vote
SyntaxInformation[Circle]
"ArgumentsPattern" -> Optional[_, _], ., Optional[, _]
That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.
add a comment |Â
up vote
1
down vote
SyntaxInformation[Circle]
"ArgumentsPattern" -> Optional[_, _], ., Optional[, _]
That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
SyntaxInformation[Circle]
"ArgumentsPattern" -> Optional[_, _], ., Optional[, _]
That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.
SyntaxInformation[Circle]
"ArgumentsPattern" -> Optional[_, _], ., Optional[, _]
That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.
answered 48 mins ago
kglr
161k8185385
161k8185385
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182424%2fthread-with-circle-too-many-arguments-given-for-circles-but-works-fine-b%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use
MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]
instead.â Henrik Schumacher
2 hours ago
1
SyntaxInformation[Circle]
gives"ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]
. That is, the first argument (if it is used) should be a list of two elements.â kglr
2 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
2 hours ago