2
$\begingroup$

I'm new on Mathematica, I started to work with it yesterday and this software is simply amazing!

However I'm having the following trouble which I couldn't find any solution on internet (I use a linux distro):

I went to Wolfram demonstration page and I clicked on "download author code".

I opened the file: SecantAndTangentLines-author.nb

I didn't see any graph or code. Then I clicked on update thumbnail and snapshot and enable dynamics bottom

Mathematica gave me a lot of errors:

How can I get the author code to use in my slide show? How can I paste and copy dynamic graphs in Mathematica?

Thanks

Edit: I've already solved the problem and the graph is working. However, I couldn't see where is the author code.

$\endgroup$

closed as off-topic by user9660, MarcoB, Karsten 7., dr.blochwave, C. E. Oct 28 '15 at 20:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Community, MarcoB, Karsten 7., dr.blochwave, C. E.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$ – Michael E2 Sep 20 '15 at 19:43
  • 1
    $\begingroup$ Looks like the function f is undefined. Try running the initialization code. -- I think you'll need to be a little patient and start by learning the basics first. Cutting and pasting other programmer's dynamic code often requires you to be pretty knowledgeable about Mathematica programming. It's usually much more difficult than cutting and pasting images into a text editor, esp. if you're getting your input from the Demonstrations site. The authors often write their programs as though they will run in an isolated, stand-alone environment. $\endgroup$ – Michael E2 Sep 20 '15 at 19:56
  • $\begingroup$ In the downloaded *.nb file, you should evaluate the first cell that contains some needed definitions such as the one for f. You can see those definitions by double clicking on the cell bracket on the right of the "Initialization" cell group. $\endgroup$ – MarcoB Sep 20 '15 at 21:21
  • $\begingroup$ @MichaelE2 I solved the problem, thank you. However I don't know where I can find the author code. $\endgroup$ – user26832 Sep 20 '15 at 21:51
0
$\begingroup$

Go to the Wolfram Demonstration page, click on "Download Demonstration (.CDF)". Save the file "SecantAndTangentLines.cdf". Open this file with Mathematica, and click on the gray "Download Source Code >>" button below RELATED LINKS and above PERMANENT CITATION. Now save the file "SecantAndTangentLines-source.nb". Opening this second file will show all the code used to make the demonstration. Demonstration files ending in "-source.nb" are the ones you want.

$\endgroup$
  • $\begingroup$ My understanding is that OP has done that already; My guess is that he/she just needs to evaluate the initialization cells that contain needed definitions. $\endgroup$ – MarcoB Sep 20 '15 at 21:23
  • $\begingroup$ @MarcoB When I open the -source.nb, and execute the code block, the demonstration works with no errors. In the OP I can only find references to -author.nb files in his text and in the images included. I've never used such files, only the the source.nb files, which have always worked for me... $\endgroup$ – KennyColnago Sep 20 '15 at 21:27
  • $\begingroup$ @MarcoB I solved the problem, the graph is working. However I don't know where I can find the source code. $\endgroup$ – user26832 Sep 20 '15 at 21:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.