You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/05/17 05:29:08 UTC

[GitHub] [incubator-echarts] Rranjansolenoid opened a new issue #12649: how to solve this !!

Rranjansolenoid opened a new issue #12649:
URL: https://github.com/apache/incubator-echarts/issues/12649


   Suppose you have a piece of paper in the shape of a circle, with a circumference of 8 feet. (It’s a pretty large piece of paper!) Now you fold the circle in half to produce a semi-circle; then fold that over to produce a quarter-circle; then fold that to produce an eight-size wedge of a circle; and so forth. How many folds (assuming, counterfactually, that the paper could withstand this) would it take before the edge of the remaining wedge is less than 0.01 inch?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart commented on issue #12649: how to solve this !!

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12649:
URL: https://github.com/apache/incubator-echarts/issues/12649#issuecomment-629994924


   @Rranjansolenoid Hi, I'm not sure whether this issue is related to `echarts` or not and it was closed for not using [issue template](https://ecomfe.github.io/echarts-issue-helper/).
   It seems to be a mathematical problem. There are some example codes for you.
   ```js
   // circumference of the circle
   let c = 8 * 12; // feet to inch
   
   // the radius of circle
   let r = c / (2 * Math.PI);
   
   // target arc length we want to get
   let targetArcLength = 0.01;
   
   // the arc length of circle
   let arcLength = c;
   
   // fold count
   let foldCount = 0;
   
   // the center angle of circle
   let circleCenterAngle = 360;
   
   // loop until the arc length is less than 0.01
   while(arcLength >= 0.01) {
   	// calculate the center angle of circle by foldCount
   	circleCenterAngle = 360 * Math.pow(2, -foldCount);
   	// calculate the arc length(arcLength = nπr / 180)
   	arcLength = circleCenterAngle * Math.PI * r / 180.0;
   	// increases the foldCount
   	++foldCount;
   }
   
   console.log('foldCount', foldCount)
   ```
   Run it and then we can get the result `foldCount 15`. Is it expected?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart edited a comment on issue #12649: how to solve this !!

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #12649:
URL: https://github.com/apache/incubator-echarts/issues/12649#issuecomment-629994924


   @Rranjansolenoid Hi, I'm not sure whether this issue is related to `echarts` or not and it was closed for not using [issue template](https://ecomfe.github.io/echarts-issue-helper/).
   It seems to be a mathematical problem. There are some example codes for you.
   ```js
   // circumference of the circle
   let c = 8 * 12; // feet to inch
   
   // the radius of circle
   let r = c / (2 * Math.PI);
   
   // target arc length we want to get
   let targetArcLength = 0.01;
   
   // the arc length of circle
   let arcLength = c;
   
   // fold count
   let foldCount = 0;
   
   // the center angle of circle
   let circleCenterAngle = 360;
   
   // loop until the arc length is less than 0.01(targetArcLength)
   while(arcLength >= targetArcLength) {
   	// calculate the center angle of circle by foldCount
   	circleCenterAngle = 360 * Math.pow(2, -foldCount);
   	// calculate the arc length(arcLength = nπr / 180)
   	arcLength = circleCenterAngle * Math.PI * r / 180.0;
   	// increases the foldCount
   	++foldCount;
   }
   
   console.log('foldCount', foldCount)
   ```
   Run it and then we can get the result `foldCount 15`. Is it expected?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] closed issue #12649: how to solve this !!

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #12649:
URL: https://github.com/apache/incubator-echarts/issues/12649


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12649: how to solve this !!

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12649:
URL: https://github.com/apache/incubator-echarts/issues/12649#issuecomment-629745816


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org