Message Boards Message Boards

0
|
6078 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Standalone CDF Export is not working

Posted 11 years ago
Hi all,

I wrote this simple code
 f[x_] = x^5 + 100*x^2;
 
 y[x_, x0_] = f[x0] + f'[x0]*(x - x0);
 
 Manipulate[
 
  Plot[{y[x, x0], f[x]}, {x, -6, 4}, PlotRange -> {-1000, 2000},
 
   PlotStyle -> {{Thick, Purple}, {Thick, Green}}], {x0, -5, 4}]

that runs properly in the .nb notebook

























but when I export it into a CDF file by means of the Standalone WIzard i get this:

























Thank you!!
POSTED BY: Sergio Garcia
2 Replies
Posted 11 years ago
It does! Thanks a lot!
POSTED BY: Sergio Garcia
This seems to work:
 Manipulate[
  Plot[{y[x, x0], f[x]}, {x, -6, 4}, PlotRange -> {-1000, 2000},
   PlotStyle -> {{Thick, Purple}, {Thick, Green}}],
  {x0, -5, 4},
  SaveDefinitions -> True,
  Initialization -> {
    f[x_] = x^5 + 100*x^2,
    y[x_, x0_] = f[x0] + f'[x0]*(x - x0)}
  ]
POSTED BY: C ormullion
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract