Input editor does not like my Thread over Circle expression
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
:
However, when I evaluate that code I am getting the right output:
Questions
Why, although is , 1, 0
colored in red, does the expression evaluate correctly? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax
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
:
However, when I evaluate that code I am getting the right output:
Questions
Why, although is , 1, 0
colored in red, does the expression evaluate correctly? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax
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
4 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
4 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
4 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
:
However, when I evaluate that code I am getting the right output:
Questions
Why, although is , 1, 0
colored in red, does the expression evaluate correctly? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax
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
:
However, when I evaluate that code I am getting the right output:
Questions
Why, although is , 1, 0
colored in red, does the expression evaluate correctly? Is it a bug? Or maybe I am doing something wrong?
graphics front-end syntax
graphics front-end syntax
edited 16 mins ago
m_goldberg
82.2k869190
82.2k869190
asked 4 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
4 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
4 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
4 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
4 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
4 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
4 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
4 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
4 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
4 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
4 hours ago
2
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
4 hours ago
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
4 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
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
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 |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
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
2
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
2
down vote
up vote
2
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 2 hours ago
kglr
161k8185385
161k8185385
add a comment |Â
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
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 3 hours ago
community wiki
2 revs
Kuba
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%2finput-editor-does-not-like-my-thread-over-circle-expression%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
4 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
4 hours ago
2
Please do not use bug tag unless it is confurmed by support or community.
â Kubaâ¦
4 hours ago