Message Boards Message Boards

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

Beginner using CloudDeploy[FormFunction[]]

Posted 9 years ago

Hello!

I am a math teacher. Below is my code to just output a graph of any function. Unfortunately, it is only outputting a blank Cartesian grid. Any help would be sincerely appreciated. Thank you all!

CloudDeploy[FormFunction[{"equation" -> "MathExpression"}, Plot[ #equation, {x, -10, 10}]&, "PNG" ]]

PS. I halfway blindly copied this, and have no idea what the & does; just that it breaks without it.

POSTED BY: Uzair Qarni
5 Replies

I would start by making graphs and similar things. CloudDeploy and FormFunction are useful once you've learned the basics of the language.

I would take a look at the virtual book for an introduction:

http://reference.wolfram.com/language/tutorial/VirtualBookOverview.html

There are more resources in books and videos you might find helpful:

https://www.wolfram.com/broadcast/screencasts/handsonstart/

POSTED BY: Sean Clarke
Posted 9 years ago
POSTED BY: Uzair Qarni

Restricted depends heavily on the type (its first argument). The documentation for Restricted doesn't cover its full behavior, just a very large set of common ways that it is used.

Look at the documentation for things like "Expression" and "MathExpression" under "Restriction Specifications". These documentation pages cover how Restricted is used with them.

http://reference.wolfram.com/language/ref/interpreter/Expression.html

The documentation pages for Interpreter types also have examples of how Restricted is used with them.

POSTED BY: Sean Clarke
POSTED BY: Sean Clarke
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