Showing posts with label CDF. Show all posts
Showing posts with label CDF. Show all posts

Tuesday, December 4, 2012

Quadratic Function Grapher


Below is a Wolfram .CDF that will allow you to graph a quadratic function of the form $y=ax^2+bx+c$ on the standard graph. Just enter the values for $a, b, \mbox{ and } c$ in the boxes below.

Plot:

Monday, December 3, 2012

Linear Function Grapher

Below is a Wolfram .CDF that will allow you to graph a linear function of the form Ax+By=k on the standard graph. Just enter the values for A, B, and k in the boxes below.

Plot:

Embedding Wolfram CDF files in a Google Site

I have been working a lot with Wolfram CDF and I am excited by the release of Mathematica 9 and the ease in creating and deploying CDF files. One of the best uses it to create interactive manipulations for my students to use.

I like to embed these in my school Google sites. However, this has proven to be quite difficult since Google sites do not allow Javascripts that create scripts (the CDF embed script that I talk about here: Wolfram CDF embedding ).

Hence, we need to resort to using the iframe gadget to refer to a different page that has the CDF embedded.

In my previous post on CDF embedding, I talk about how I host my CDF files in the Public folder on Dropbox. I then use the Javascript script to embed my CDF in my blogger page. This does a great job of hosting my interactive CDF file.
Now, I need to embed this blogger page on my Google site. However, I don't want to use the whole webpage in my iframe since it will require too much scrolling to find exactly what I want.

So the method I use is to create a target location right above my CDF file in the blogger page. I accomplish this by using the ID anchor in the HTML code on my blogger page.

For example, right above the CDF embed script on the html, I add the code:
<br id="MyBreakName" />

Then, I add the CDF embed script:
<script src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js" type="text/javascript">
</script>
<script type="text/javascript">
var cdf = new cdfplugin();
cdf.embed('TheWebsiteThatHostsMyCDFdocument', 400, 800);
</script>

So overall that snippet of code looks like this for my Plot Points CDF:


<br id="cdfFile" />
Plot:<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
<script src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js" type="text/javascript"></script>
<script type="text/javascript">
var cdf = new cdfplugin();
cdf.embed('http://dl.dropbox.com/u/30779938/WolframCDFfiles/PlotPointManipulateOnlyGraph.cdf', 443, 489);
</script>


Now, it will create an anchor for me to jump to and gives a link to directly jump there.
The link is whatever the blogger URL is to get to that page with an #anchorName appended on the end.
So in my Plot Points CDF example, the blogger site is:
http://mathtechtips.blogspot.sg/2012/12/blog-post.html

Now, I created an anchor right above the Plot Point CDF on this page and called the anchor "cdfFile". To link directly to this point in my page, I use the link:
http://mathtechtips.blogspot.sg/2012/12/blog-post.html#cdfFile

This is the link I will reference in my iframe URL in the Google gadget that I use on my school Google Site.

To do this, I find the place in my Google Sites that I want to enter the CDF file and Insert->... More gadgets...
from there, choose iFrame:

and put the anchored URL link in the box, in this example: 
http://mathtechtips.blogspot.sg/2012/12/blog-post.html#cdfFile

This will put the Google Gadget (in my case the iframe box, pointing to my blogger page with the CDF file) in your Google Sites page.

Once I hit the SAVE button at the top, I will see the finished product on my Google Sites page:

This is the best way that I have found to embed my CDF deployments in a Google EDU site. Please comment if you have some suggestions on how to improve it!


Plot Point CDF

Below is a Wolfram .CDF that will allow you to plot any point on the standard graph. Just enter the x-value in for a and the y-value in for b.

Plot:

Tuesday, February 28, 2012

Plot of a Number versus the Number of letters in the Number

Testing to see the output of my Mathematica notes deployed as CDF. Trying to determine the functionality of all aspects. You do need to have the WolframCDF player installed to see the dynamic features (it is free), which is found here: http://www.wolfram.com/cdf-player/

Here is a response to Dan Meyer's Tweet:

Sunday, February 19, 2012

Normal Distribution Area Calculator

Testing to see the output of my Mathematica notes deployed as CDF. Trying to determine the functionality of all aspects. You do need to have the WolframCDF player installed to see the dynamic features (it is free), which is found here: http://www.wolfram.com/cdf-player/

In the interactive demonstration below, you can calculate the area between two values in a normal distribution given a mean and standard deviation. There are some limitations of the CDF deployments (you can't input values) so the dropdown menus have a lot of values!

Tuesday, January 31, 2012

Circular Functions

Testing to see the output of my Mathematica notes deployed as CDF. Trying to determine the functionality of all aspects. You do need to have the WolframCDF player installed to see the dynamic features (it is free), which is found here: http://www.wolfram.com/cdf-player/

Testing deployment of CDF files that require user input and use Manipulate

Testing deployment of CDF files that require user input and use Manipulate


Motivating Trig Identities

Testing to see the output of my Mathematica notes deployed as CDF. Trying to determine the functionality of all aspects. You do need to have the WolframCDF player installed to see the dynamic features (it is free), which is found here: http://www.wolfram.com/cdf-player/

Notes on Graphs of Sines and Cosine in CDF format

Testing to see the output of my Mathematica notes deployed as CDF. Trying to determine the functionality of all aspects. You do need to have the WolframCDF player installed to see the dynamic features (it is free), which is found here: http://www.wolfram.com/cdf-player/

Thursday, January 5, 2012

Chapter 4 MC Question Generator

Here is a CDF file that will generate multiple choice questions for a Chapter 4 review. You can choose the type of problem that you would like to do and it will randomly generate new problems for you.

You do need to download the Wolfram CDF player (it is free) which can be found here:
http://www.wolfram.com/cdf-player/

Friday, December 9, 2011

Wolfram CDF

I have been experimenting with Wolfram's new Comuptable Document Format. I think it is a great asset for math teachers to deploy interactive visualizations to their students. Now I can create Manipulations in Mathematica and have my students interact with them without having the software. Additionally, they can download Demonstrations from the Wolfram site!
In the example below, I show the input and the Manipulate output for a problem that we did in class (find the quadratic function that has x-intercepts at 5 and -3 and passes through the point (2,2)).
Since I use blogspot, I toggled over to the HTML part and pasted in this code:
All you need to do is change the location of the site hosting my CDF file and the width and height of the embed (in my case width=400 and height=800).

<script src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js" type="text/javascript">
</script>
<script type="text/javascript">
var cdf = new cdfplugin();
cdf.embed('TheWebsiteThatHostsMyCDFdocument', 400, 800);
</script>

If you are having trouble hosting your document, you can put it in a public document on Dropbox. If you don't have an account yet, I get some extra space with a referral and you get 2GB free! My referral link: Dropbox referral link. Currently, you cannot just host your document in Google Docs and embed it.