Mathematica 7

1. Jun 3, 2009

button_ger

hey.

How can I realize a dynamic solution?

The first variable slider should be simply d and the second a Cos [x degrees]?

Slider[Dynamic[angle], {0., 90.} Degree]
Slider[Dynamic[distance], {0, 1000.}]
Dynamic[distance]/ Cos[Dynamic[angle] ]

... does not work.
The solution will give
830. Sec[1.428] for example.

How can I solve the problem?

2. Jun 4, 2009

Staff: Mentor

Dynamic[distance/Cos[angle]]

or

Manipulate[distance/Cos[angle], {angle, 0., 90.}, {distance, 0., 1000.}]

3. Jun 5, 2009

button_ger

Great. This solved my problem. Thanks a lot.

But now I have an analogical problem.
When I use "solution = Dynamic[distance/Cos[angle]]" I cannot use solution in the next line dynamicaly like

solution2 = solution * 2

How can I do this?

4. Jun 6, 2009

Staff: Mentor

Dynamic[solution=distance/Cos[angle]]

I wish I could give you an explanation why, but I honestly don't understand the details of Dynamic.

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook