Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How to draw mathematical functions? (http://www.alice.org/community/showthread.php?t=10326)

 alicecub 10-21-2013 12:33 PM

How to draw mathematical functions?

Hi,

since I am an Alice newbie, this may be a dumb question, but how can I draw mathematical fuctions, such as a sine curve, with Alice 2.3? I see "sine"-blocs etc. in the mathematics sections, but I am unable to use them. How does this work? How do I get a pen to to draw the function?

Any help would be gratefully appreciated!

Thanks,

alicecub

 MrMoke 10-21-2013 03:19 PM

Good example of the Sine animation Here

[url]http://en.wikipedia.org/wiki/Sine[/url]

Check out the description of "Unit Circle". Should give some good ideas to try.

 alicecub 10-22-2013 11:16 AM

Thanks, but we have a misunderstanding here: I know what a sine is, had this in highschool, I can plot this curve (and other mathematical functions) using Python/Pygame or Scratch, but with Alice, I am unable to pull over the mathematical functions bloc, let alone do I know what else is needed. I would die for an Alice example, some mathematical function would do!

Thanks,

alicecub

 chickentree 10-23-2013 03:09 PM

Ya can't get there from here.

[QUOTE=alicecub;53583]Thanks, but we have a misunderstanding here: I know what a sine is, had this in highschool, I can plot this curve (and other mathematical functions) using Python/Pygame or Scratch, but with Alice, I am unable to pull over the mathematical functions bloc, let alone do I know what else is needed. I would die for an Alice example, some mathematical function would do!

Thanks,

alicecub[/QUOTE]

Hi, Alice does not have anything like a pen so drawing actually becomes a real challenge which usually involves sticking different objects using the vehicle method if it can be done at all. The examples in the book show how to get an object to move as a sine wave but not draw one on the stage.

What do you want to do?

mark

 alicecub 10-24-2013 10:23 AM

Thanks! I think I will stick to Scratch.

alicecub

 djslater107 10-25-2013 06:32 AM

Drawing in Alice

This is a much more difficult problem in a 3D environment, such as Alice. One possible solution would be to add a large number of objects, such as circles, and drop them along the path of the sin wave.

 alicecub 10-26-2013 02:09 PM

Thanks for this information! I was looking for an "all purpose" programming language, easy to understand for kids. But since I have even trouble in installing Alice on Ubuntu