Message Boards Message Boards

Create a W|A widget for an expression?

Posted 6 years ago

For the web, i host a calculator for determining the interior diameter of a sphere to resonate a given frequency and also the ability to create the spheres and generate stl files for 3d printing. i'm trying to create a widget to make the calculator easier and less clunky. There are two calculators. One for a sphere with a sound hole and one for a sphere with a tube to elongate the sound hole. The link to the calculator is here- Spherical Resonator Calculator. the two expressions i use for the calculators are,

17.87*((d/(f^2))^(1/3))

((3(d^2)(C^2))/(8L(f^2)*(3.14^2)))^(1/3)

where

d=diameter of sound hole

f=frequency to resonate

C=speed of sound

L=length of sound tube

in meters. both solve for the diameter of the sphere. i have been unable to create a widget with input fields for the variables. i'm not sure of the approach or correct settings for each entry when creating the widget.

any help would be appreciated.

thank you

POSTED BY: drew pear
2 Replies
Posted 6 years ago

thank you for your reply.

i did look through the tour.

i'm trying to build a widget from scratch. here is what i've tried.

to start, i input one of the expressions and this is what came back pic 1

pic 2

i chose to highlight the variables and made these settings. what to highlight, default value and interpretation i am unsure of. pic 3

i get this output and click next. pic 4

this is the result. the page hangs on computing and will not continue

pic 5

thank you!

POSTED BY: drew pear

You have been sent a link pointing you to documentation on widget building:

http://www.wolframalpha.com/widgets/tour

Have you tried following it and what exactly did not work for you?

POSTED BY: Moderation Team
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