# 3 Frequency classical SHO

summary:

The 3 complex planes in a quaternion can be tuned to different frequencies and amplitudes.

description:

The simple harmonic oscillator is in yellow, its velocity in blue, and acceleration in red. The scalar value for the a low velocity system is equal to one while the scalar acceleration is zero. The differences between both frequencies and amplitudes change the relative lengths of the blue and red lines, velocity and acceleration respectively. In this example, the frequency decreases while the amplitude increase going from x to y to z.

command:
q_graph -out sho-xyz_and_v_and_a -dir sho -box 10 -command 't_function -mqs 2 -mqs 1 -t_function polynomial -t_function one -x_function cos -x_function polynomial -y_function cos -y_function polynomial -z_function cos -z_function polynomial 1 2 1 2 1 3 2 1 0 1 6 8 -shift "-11 5 0 0" -pi 8 -n_steps 1600' -color yellow -command 't_function -mqs 2 -mqs 1 -t_function one -t_function one -x_function sin -x_function polynomial -y_function sin -y_function polynomial -z_function sin -z_function polynomial -shift "0 5 0 0" -pi 8 -n_steps 1600 -- 1 2 1 2 1 3 2 1 0 -2 -6 -4' -color blue -command 't_function -mqs 2 -mqs 1 -t_function zero -t_function zero -x_function cos -x_function polynomial -y_function cos -y_function polynomial -z_function cos -z_function polynomial -shift "0 5 0 0" -pi 8 -n_steps 1600 -- 1 2 1 2 1 3 2 1 0 -4 -6 -2' -color red
math
equation:

$(t, x, y, z) = (t, cos(2 t + 3), 6 cos(t + 2), 8 cos(t/2 + 1))$
$(\gamma, \gamma \beta_x, \gamma \beta_y, \gamma \beta_z) = (1, -2 sin(2 t + 3), -6 sin(t + 2), -4 sin(t/2 + 1))$
$(a_t, a_x, a_y, a_z) = (0, -4 cos(2 t + 3), -6 cos(t + 2), -2 cos(t/2 + 1))$

tags
Physics Tag:
simple harmonic oscillator
Math Tag:
sine
cosine
Programming Tag:
command line quaternions
t_function
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 3, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://visualphysics.org/book/export/html/136", "fetch_time": 1537321863000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-39/segments/1537267155814.1/warc/CC-MAIN-20180919004724-20180919024724-00504.warc.gz", "warc_record_offset": 266087679, "warc_record_length": 2546, "token_count": 600, "char_count": 1835, "score": 3.515625, "int_score": 4, "crawl": "CC-MAIN-2018-39", "snapshot_type": "latest", "language": "en", "language_score": 0.4695688486099243, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00058-of-00064.parquet"}