NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
April 19, 2014, 04:25:28 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  
"The mind is its own place, and in itself, can make heaven of Hell, and a hell of Heaven." ..."John Milton(1608-1674, English Poet)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Ejs open source Linear Equation Interactive Java Applet  (Read 8651 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
on: January 19, 2009, 10:23:33 am » posted from:-,-,SINGAPORE

Open source Ejs Linear Equation Interactive Java Applet
Linear Equation created by Wee Loo Kang 黄如刚 (Good!)
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=546.msg1806#msg1806
http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090115/weelookanglinear_Simulation.html
Ejs open source

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!


* linearequation01.png (31.13 KB, 749x499 - viewed 43 times.)
« Last Edit: May 06, 2011, 03:36:58 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: June 18, 2009, 12:18:08 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

changes made:
customize from an earlier source code by Hwang Fu-Kwun
06May 2011
add Length = Math.sqrt( ( y2-y1) + (x2-x1) ) for the learning of length of segment
add input field and options to draw green line


it just hit me that i will be cool, if an option to

input the equation and it show the line on the drawing panel! Got time will improve it
Done!

Just found
http://www.geogebra.org/en/wiki/index.php/Step_by_Step_Graphing_of_Absolute_Value_Equations_%28Linear_%26_Quadratic%29
Step by Step Graphing of Absolute Value Equations (Linear & Quadratic)Jump to: navigation, searchUse this applet to demonstrate and visualize how to sketch graphs of absolute valued functions containing linear or quadratic terms. Suitable for pupil self learning as well

Sketching Graphs of Absolute Valued Functions(with linear or quadratic terms) Step by Step Approach
The file is downloadable at step_by_step_abs_graphing_linear_quad1.ggb

Feel free to modify it. Do appreciate your feedback to lewweisern@gmail.com





* Linear Equation created by Wee Loo Kang (Good!).PNG.png (18.6 KB, 1024x768 - viewed 55 times.)

* linearequation01.png (31.13 KB, 749x499 - viewed 50 times.)

* linearequation.png (40.69 KB, 758x557 - viewed 55 times.)
« Last Edit: May 06, 2011, 03:53:48 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: May 06, 2011, 10:17:02 am » posted from:-,-,SINGAPORE

not sure why but there is an error?

Java Plug-in 1.6.0_20
Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
----------------------------------------------------


java.lang.reflect.InvocationTargetException
   at java.awt.EventQueue.invokeAndWait(Unknown Source)
   at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationView.(LinearEquationView.java:188)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationSimulation.(LinearEquationSimulation.java:20)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquation.(LinearEquation.java:93)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationApplet.init(LinearEquationApplet.java:26)
   at sun.plugin2.applet.Plugin2ManagerAppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission www.moe.gov.sg resolve)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkConnect(Unknown Source)
   at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
   at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
   at sun.awt.SunToolkit.getImage(Unknown Source)
   at javax.swing.ImageIcon.(Unknown Source)
   at javax.swing.ImageIcon.(Unknown Source)
   at org.opensourcephysics.tools.ResourceLoader.getIcon(Unknown Source)
   at org.colos.ejs.library.control.swing.ControlSwingElement.getIcon(Unknown Source)
   at org.colos.ejs.library.control.swing.ControlMenuItem.setValue(Unknown Source)
   at org.colos.ejs.library.control.ControlElement.setProperty(Unknown Source)
   at org.colos.ejs.library.control.ControlElement.setProperty(Unknown Source)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationView.createControl50(LinearEquationView.java:1360)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationView.createControl(LinearEquationView.java:1206)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationView.access000(LinearEquationView.java:19)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationView1.run(LinearEquationView.java:190)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.NullPointerException
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationView.reset(LinearEquationView.java:1653)
   at org.colos.ejs.library.Animation.reset(Unknown Source)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationSimulation.(LinearEquationSimulation.java:24)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquation.(LinearEquation.java:93)
   at users.sgeducation.lookang.LinearEquation_pkg.LinearEquationApplet.init(LinearEquationApplet.java:26)
   at sun.plugin2.applet.Plugin2ManagerAppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #3 on: May 06, 2011, 12:20:51 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

not to worry!
the error is a result of using Ejs 4.3.0
i used Ejs 4.3.3.1 and it is ok now
enjoy!
Logged
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
Reply #4 on: May 06, 2011, 05:11:22 pm » posted from:Uberaba,Minas Gerais,Brazil

Do you mean when use diffrent Ejs version can have error i already use last version and also ejs 4.3.0 but didn't have errors when run or recompile to jar file.
However seems error that you got is between JDK (Java Plug) may if you set the right path to jdk in your PC can solve it also you can know the path of jdk using command
start>>cmd>>set Java_Home, to can watch the right path.
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1726


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: May 06, 2011, 05:51:37 pm »

Web deploy didn't work on 4.3
The jar runs perfectly that is why need to check web version
Logged
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
Reply #6 on: May 06, 2011, 07:51:34 pm » posted from:SAO PAULO,SAO PAULO,BRAZIL

I suggest you uninstall and install again JDK, may this solve the probelm.
Logged
geeknick
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #7 on: November 10, 2011, 01:28:10 pm » posted from:New Delhi,Delhi,India

Is there any java program for solving linear equations or any java applet for that?? Hello! Could you please help me with this? I have my answer but I am not sure. I am also not sure in my solution. Thanks in advance
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3047



WWW
«
Embed this message
Reply #8 on: November 11, 2011, 10:48:33 pm » posted from:,,Satellite Provider

Please write down your "answer" so that others might be able to help!
Logged
Pages: [1]   Go Up
  Print  
"The mind is its own place, and in itself, can make heaven of Hell, and a hell of Heaven." ..."John Milton(1608-1674, English Poet)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Open Source Ejs Newton's First Law java applet
Collaborative Community of EJS
lookang 1 8476 Last post November 25, 2008, 04:50:03 pm
by lookang
Open source Ejs Quadratic Equation Java Applet
Collaborative Community of EJS
lookang 0 4950 Last post January 19, 2009, 10:15:26 am
by lookang
Ejs Open Source Coulomb's Law Java Applet
Collaborative Community of EJS
lookang 2 7068 Last post September 30, 2010, 09:31:23 pm
by lookang
Ejs Open Source Cyclotron Java Applet in 3D
Collaborative Community of EJS
lookang 4 11741 Last post October 04, 2011, 02:50:15 pm
by lookang
Ejs Open Source Capacitor java applet
Collaborative Community of EJS
lookang 0 4008 Last post December 21, 2010, 03:18:29 pm
by lookang
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.077 seconds with 23 queries.since 2011/06/15
宜久鋁門窗