advanced math help plz

This is a discussion on advanced math help plz within the A Brief History of Cprogramming.com forums, part of the Community Boards category; ok suppose i have a formula with a function in it, and in the parenthesis for it there are two ...

  1. #1
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    Posts
    116

    advanced math help plz

    ok suppose i have a formula with a function in it, and in the parenthesis for it there are two numbers, seperated by a comma, and i dont know what to do
    heres the problem:
    y(x, t)=y0*exp(-t/n)*cos(2PIft)*sin(PIx/l)
    a few things to note-
    1.) the part in bold is the part that i dont know what to do with (i dont understand the comma seperating the numbers)
    2.) the italics 0 is show that it is variable y zero, not y times zero
    3.) exp is a function, where exp(x)=e^x, and e~2.7182818
    4.) the following variables are given:
    length l=25.5, frequency f=110, magnitude of intial displacement y0=0.5, and characterist decay time n=5
    squestions are:
    a.) at what location x will the maximum value of y(x, t) occur at t=0? what is that maximum value?
    b.) how log does it take for the maximum value of y(x, t) to become y0 to become y0/2?
    c.) how long does it take for the value of y(x, t) to drop to an inaudible level (0.01 inches)?
    d.) what parameters in the equation would you expect to change if the string was shortened by one half? why?
    i dont expect people to answer for me, i dont what them to. but, i have no idea how to even start this. any help is greatly appreciated.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    a.) at what location x will the maximum value of y(x, t) occur at t=0? what is that maximum value?
    y(x, t) = y0*exp(-t/n)*cos(2PIft)*sin(PIx/l)

    y(x, 0) = y0*exp(0)*cos(0)*sin(PIx/l)
    y(x, 0) = y0*sin(PIx/l)

    Constants are: y0, PI & l

    The function is maximal when sin() is maximal, meaning 1 for v = PI/2.

    ((PI * x) / l) = (PI / 2)

    Shorten by PI:

    (x / l) = (1 / 2)

    Multiply by l:

    x = (l / 2) = (25.5 / 2) = 12.75


    The function has its maximum at x = 12.75.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

    Re: advanced math help plz

    Originally posted by Geo-Fry
    y(x, t)=y0*exp(-t/n)*cos(2PIft)*sin(PIx/l)
    a few things to note-
    1.) the part in bold is the part that i dont know what to do with (i dont understand the comma seperating the numbers)

    that 'function' in math can be thought of the same way as a 'function' in programming.

    ex)

    f(x) = 2x + 1
    f(3) = 2(3) + 1

    for multi-variables...

    f(x,y) = 2x + y/x
    f(3,4) = 2(3) + 4/3

    just think of the x and y (or x and t in your case) as the parameters for your function.

  4. #4
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    Posts
    116
    ohhh, ok, its all making sense now, thanks a bunch, i appreciate it a lot.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Advanced math in precompiling?
    By TriKri in forum C++ Programming
    Replies: 16
    Last Post: 09-30-2007, 05:14 PM
  2. advanced math library for linux?
    By Cobras2 in forum Linux Programming
    Replies: 5
    Last Post: 07-18-2005, 01:20 AM
  3. how to use operator+() in this code?
    By barlas in forum C++ Programming
    Replies: 10
    Last Post: 07-09-2005, 08:22 PM
  4. toughest math course
    By axon in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-28-2003, 10:06 PM
  5. advanced math problem
    By laasunde in forum Tech Board
    Replies: 62
    Last Post: 10-03-2003, 11:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21