Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica 7

  1. Jun 3, 2009 #1

    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. jcsd
  3. Jun 4, 2009 #2


    Staff: Mentor



    Manipulate[distance/Cos[angle], {angle, 0., 90.}, {distance, 0., 1000.}]
  4. Jun 5, 2009 #3
    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?
  5. Jun 6, 2009 #4


    Staff: Mentor


    I wish I could give you an explanation why, but I honestly don't understand the details of Dynamic.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook