Page 2 of 3

quick question

Posted: Sat May 11, 2013 5:32 am
by Detrix
Just a quick question: should the amplitudes be the same or just pick some values? Right now I chose 10 for the first rotation and 6 for second. So far the quick test numbers look promising ( just the imaginary parts spewed out to console). I did a clock of .001 to 1sec.

Jeret

quick and dirty results

Posted: Sat May 11, 2013 8:53 am
by Detrix
Here is my attempt to plot what a bi-rotation looks as it travels through space. No animation yet. I could probably take a video of my screen and rotate it around for a better view. I hope this is an acceptable start.

Data

Posted: Sat May 11, 2013 10:49 am
by bperet
should the amplitudes be the same or just pick some values?
The amplitude should be 1 in both cases, but I would recommend a user selectable range, perhaps 1 to 8, by integer steps (default 1) so we could do some experimenting with harmonics and examine the resulting waveforms.

The defaults for a normal birotation should be:

rot1: amplitude = 1, theta velocity = 1, phase = 0.

rot2: amplitude = 1, theta velocity = -1 (opposite direction), phase = 0.

That will reproduce Nehru's birotating photon, with a cosine wave on the X (real) axis.

If you have a user interface to control the variables, it would be nice to control the theta velocity with a slider and CW/CCW button, so it would run CW (+n) or CCW (-n), with a magnitude of 1-8 as well. The phase angle should be +- 180 degrees (convert to radians for code) with a default of zero.

Try again

Posted: Sat May 11, 2013 10:54 am
by bperet
I want to try to post the full sized the pictures here. I do have a web server in my home. Lets see if this works.
Try again. I've added you as a 'researcher' so you can get additional quota and features on the site.

You can upload images to the server via the file attachments menu below the comment box. After you upload, you can right-click and copy the URL from the filename, and use it to make inline images in the comment.

 

Posted: Sat May 11, 2013 10:11 pm
by Detrix
rot1: amplitude = 1, theta velocity = 1, phase = 0.

rot2: amplitude = 1, theta velocity = -1 (opposite direction), phase = 0.

That will reproduce Nehru's birotating photon, with a cosine wave on the X (real) axis
this worked like a charm, and then I went and change a few veriables, and now something is not working! Crap. But it did produce a cosine wave. Will have a picture as soon as I fix the problem.

Include http in your src link

Posted: Sun May 12, 2013 12:06 pm
by bperet
Not sure why the picture is not showing up.
You forgot to include the protocol in your IMG link (needs to start with http:// in order for it to access an image). I updated your comment to include the http:// prior to the domain name.

I want to try to post the

Posted: Sun May 12, 2013 12:09 pm
by Detrix
I want to try to post the full sized the pictures here. I do have a web server in my home. Lets see if this works.

Image

yeah, it works

Problem fixed

Posted: Sun May 12, 2013 12:18 pm
by Detrix
I hate those stupid little things you don't see right away. Anyways the problem was a simple one, here is a quick pic of the result of adding two complex numbers and plotting the real number on the X axis, and the imaginary on the Y axis and step up the Z axis.

Image

This was a quick and dirty version. For a complete interactive version, will take me a while. For this I will need to learn how to get python to work with openGL.

Bruce, I understand not being a social media person. I, for that same reason stayed away from facebook. I again ask you to consider Google+, not so much for social networking, but more of a collaboritve tool. I have enjoyed being able to video chat with a group, and discuss science topics. I am mostly on google+ to be apart of linux groups, and science groups. For entertainment I do follow a guy by the name of Wil Wheaton, aka Wesly Crusher of Star Trek: Next Gen. Of all the cast of Star Trek:NG, he is the only true nerd/geek. Anyways, one day I would love to have a chat with you about RS2.

Jeret

3d plot using J sotware

Posted: Mon May 27, 2013 8:04 am
by zuoqian
hi all,I'm also a newbie to RS/RS2 with IT background.

If we just need simple 3d plot,I think the plot function of J language(http://www.jsoftware.com) is very useful because it is a vector language and have nice operators and simple plot interface.

Please see my demo page(http://itfin.3322.org/q/j/jhp/birot.jhp) ,and the "Souce" link in it.

Thanks to the internal r. operator(http://www.jsoftware.com/help/dictionar ... ,computing is just 2 lines:

Code: Select all

t=:steps 0,2p1,1000
'x y'=.|:+.r=:(a1 r. phi1+theta1*t)+a2 r. phi2+theta2*t
and plot just as simple as:

Code: Select all

pd 'backcolor lightgray'
pd 'color red'
pd 'viewpoint ',vp
pd 'viewcenter ',vc
pd 'viewup ',vu
pd 'viewsize ',vs
pd x;y;t
reguards,

zuoqian

No plot

Posted: Tue May 28, 2013 11:54 am
by bperet
Please see my demo page(http://itfin.3322.org/q/j/jhp/birot.jhp) ,and the "Souce" link in it.
I went to the demo page, but when I click on "Plot," all I get is a series of numbers running horizontally across the screen--nothing graphic. Using Firefox... is there a plugin I need to see the graph?