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

    Dale

    Staff: Mentor

    Dynamic[distance/Cos[angle]]

    or

    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

    Dale

    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




Similar Discussions: Mathematica 7
  1. Mathematica 7 Vs. 6 (Replies: 2)

  2. Mathematica 7 (Replies: 11)

Loading...