NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 22, 2017, 03:21:40 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Reflect, review and renew constantly." ...Wisdom
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: How to plot bode diagram with ejs?  (Read 3858 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Rosehu
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
on: November 24, 2010, 10:39:29 pm » posted from:Aachen,Nordrhein-Westfalen,Germany

Dear all,

I've got problem with plotting the bode diagram in Ejs. I've tried to plot it with Trace-element, but it doesn't work. Does anybody have some ideas or suggestions about it? 
Thanks a lot in advance Smiley

Best wishes,
Rose
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: November 25, 2010, 12:12:46 pm » posted from:Taipei,T'ai-pei,Taiwan

Please attached you ejs source code , explain what kind of trace you want to plot and how you did it.
Logged
Rosehu
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #2 on: November 25, 2010, 10:22:51 pm »

Well, I want to draw a curve about the function G(w)= 1/Math.sqrt((c-m*w*w)*(c-m*w*w)+b*b*w*w), where the parameter c, m and b can be changed by sliders. The w is the x axis input, and it has a fixed range from 0 to 5000. G is the y axis input.
In other words, this curve can be modified automaticly if the parameter c, m or b is changed.

I just put this funtion under the Fixed-Relation. I don't know how to define the range of w, so I just made a loop in the code:

for (w=0; w<=5000; w=w+0.05)
G= 1/Math.sqrt((c-m*w*w)*(c-m*w*w)+b*b*w*w);

Anyways the curve didn't show up in the plotting panel. Cry

hope I've explained clearly. Smiley

Logged
Pages: [1]   Go Up
  Print  
"Reflect, review and renew constantly." ...Wisdom
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Free-body Force Diagram
Dynamics
Fu-Kwun Hwang 3 189272 Last post August 05, 2010, 03:16:27 pm
by lookang
function plot
misc
Fu-Kwun Hwang 6 17548 Last post September 06, 2007, 07:26:03 pm
by Fu-Kwun Hwang
Lissajous diagram
misc
Fu-Kwun Hwang 0 9659 Last post June 15, 2008, 03:22:26 pm
by Fu-Kwun Hwang
Request for converging lens ray diagram with an adjustable screen
Request for physics Simulations
leeyiren 8 13096 Last post January 12, 2010, 11:12:28 am
by Fu-Kwun Hwang
Lissajous diagram
misc
ahmedelshfie 0 5525 Last post May 21, 2010, 12:04:21 am
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 22 queries.since 2011/06/15