Discuss Scratch
- Discussion Forums
- » Suggestions
- » Radian Mode for Trigonometric Functions.
- JinckUFO
-
79 posts
Radian Mode for Trigonometric Functions.
I've been working on a project that involves trigonometric functions, and realized that I need to be able to use radian angle measurement for it to work, and that scratch only works with degree measurement. I did eventually find a workaround for it, but it was a long process, and I think it would generally be a good thing if a radian mode was added somewhere in the operators category. Just my thought.
Edit: The workaround is a series of if/then statements, and is not very accurate. It only works on the project that I'm making because it's not very sensitive. The workaround the person posted below is technically the conversion formula, but it doesn't change the fact that the function does not work for radians. If I believed that the workaround was just something that anyone could do for anything, then I wouldn't be here. So don't say, “Just use the workaround”.
Edit: The workaround is a series of if/then statements, and is not very accurate. It only works on the project that I'm making because it's not very sensitive. The workaround the person posted below is technically the conversion formula, but it doesn't change the fact that the function does not work for radians. If I believed that the workaround was just something that anyone could do for anything, then I wouldn't be here. So don't say, “Just use the workaround”.
Last edited by JinckUFO (July 18, 2016 22:30:19)
- Sigton
-
1000+ posts
Radian Mode for Trigonometric Functions.
Can you post the workaround?
Sigton
Sigton
- alexphan
-
1000+ posts
Radian Mode for Trigonometric Functions.
Can you post the workaround?
Sigton
Last edited by alexphan (July 18, 2016 21:51:44)
- Sigton
-
1000+ posts
Radian Mode for Trigonometric Functions.
Thanks 
No support, the workaround is easy. Especially for the people with advanced enough maths skills to work with radians.
Sigton

No support, the workaround is easy. Especially for the people with advanced enough maths skills to work with radians.
Sigton
- JinckUFO
-
79 posts
Radian Mode for Trigonometric Functions.
Yeah, it's essentially what alexphan wrote, except you have to figure out when to do the conversions. It's not always the most simple. For example: 90 degrees and pi/2 should both report the same result for sine (1), but when you convert 90 into radians with the formula it does not output 1. Can you post the workaround?
Sigton
- Sigton
-
1000+ posts
Radian Mode for Trigonometric Functions.
That's not really the fault of the lack of the block though, that's just the mathematical use of the function.Yeah, it's essentially what alexphan wrote, except you have to figure out when to do the conversions. It's not always the most simple. For example: 90 degrees and pi/2 should both report the same result for sine (1), but when you convert 90 into radians with the formula it does not output 1. Can you post the workaround?
Sigton
Sigton
- JinckUFO
-
79 posts
Radian Mode for Trigonometric Functions.
I don't understand what that's supposed to mean: “It's just the mathematical use of the function.” What exactly does that mean? Like, “the mathematical use is that it converts things as if they were degrees”? That's not a “use” it's a problem that I'm suggesting a solution to. Or, “the function is supposed to report something different”? That would be false though.That's not really the fault of the lack of the block though, that's just the mathematical use of the function.Yeah, it's essentially what alexphan wrote, except you have to figure out when to do the conversions. It's not always the most simple. For example: 90 degrees and pi/2 should both report the same result for sine (1), but when you convert 90 into radians with the formula it does not output 1. Can you post the workaround?
Sigton
Sigton
- Sigton
-
1000+ posts
Radian Mode for Trigonometric Functions.
That problem could arise through misuse and/or misunderstanding of the mathematical function rather than a lacking in Scratch's abilities. I don't understand what that's supposed to mean: “It's just the mathematical use of the function.” What exactly does that mean? Like, “the mathematical use is that it converts things as if they were degrees”? That's not a “use” it's a problem that I'm suggesting a solution to. Or, “the function is supposed to report something different”? That would be false though.
Sigton
- JinckUFO
-
79 posts
Radian Mode for Trigonometric Functions.
-1It doesn't work for all situations.
Just use the workaround!
- Discussion Forums
- » Suggestions
-
» Radian Mode for Trigonometric Functions.