Re: Beginer needing help



glen herrmannsfeldt wrote:
e p chandler wrote:

(snip regarding finding the maximum of sin(x)/x)

You are converting the argument X from degrees to radians
before passing it to the SIN function but you are using
it as is - *in degrees* in 1/X.

This makes no sense at all.

99% of the time I would agree with you. In this case, it would
depend on who asked the question. As a homework problem, I don't
see anything wrong with asking for sin(x)/x with x in degrees,
but it would be unusual anywhere else.

-- glen

Yes, I see your point now. The units of "per degree" might be correct -
displacement per degree of travel?

Using the OP's units and definition of fun(x), the minimum (which is
what the OP finally asked for) is found at 7 degrees which is what I
would expect as fun(x) is strictly decreasing here. Also, by changing
units, I might have messed up the relative magnitudes of the arguments
WRT delta and epsilon.

In either case, the *location* of maxima/minima does not change, but
the vertical scale does.

-- elliot

.



Relevant Pages

  • Re: Beginer needing help
    ... e p chandler wrote: ... (snip regarding finding the maximum of sin(x)/x) ... before passing it to the SIN function but you are using ...
    (comp.lang.fortran)
  • Re: So why do kids need laptops?
    ... glen herrmannsfeldt wrote: ... at the cash register refused to take it: "It must be counterfeit. ... I asked for the manager. ...
    (comp.dsp)
  • Re: Buffer overflows in C.
    ... it will test subscripts and execute ... of the extensions was precisely to show how C could be improved. ...
    (comp.compilers.lcc)
  • Re: Efficient way to pass different shaped arrays?
    ... glen herrmannsfeldt wrote: ... to select the appropriate dimensions? ... -- John Harper, School of Mathematics, Statistics and Computer Science, ...
    (comp.lang.fortran)
  • Re: Why zero is represented by an extremely small value?
    ... glen herrmannsfeldt wrote: ... If you zeroed out the bits of a single precision number and then printed it as a double, what would be the largest number you would expect? ... Even reading the operating instructionsand wearing protective equipment doesn't prevent some folks from sawing their fingers off. ...
    (comp.lang.fortran)