From: Kaze on
> Hmmmm ... well, now isn't that curious? You got the same answer for the number of elements of F in the interval [1,2) as in the interval [1/64,1/32). Does that seem right to you? Is that what you expect, or would you expect to get a different answer for these two questions?
>
> James Tursa

What I aspect is to understand what I'm doing and to have no errors. Of course the problem has to be solved corecly.

I get the same answer but I don't think is wrong.

Thank you again for the help, I learn more from you than from my teacher.

Kind regards.
From: Steven Lord on

"Kaze " <raicabogdan(a)gmail.com> wrote in message
news:hj7m8j$23m$1(a)fred.mathworks.com...
> Hello,
> I need to solve a problem in matlab. Here is what I must do:
>
> Let F, set of all numbers in IEEE floating point, except NaN and inf,
> whith 7ff (in hexadecimal) exponent moved and numbers not normalized
> with superscript moved 000 (in hexadecimal)
>
> I realy don't know how should I start.
>
> After this I have to answer:
>
> 1. How many elements F has
> 2. What proportion of elements of F are in the interval [1, 2)?
> 3. What proportion of elements of F are in the interval [1/64, 1/32) ?
> 4. I need to determine by random selection the proportion of elements of F
> which satisfy the logical relationship: x*(1/x) == 1

The first three questions you can do without using MATLAB. Take a look at
this Cleve's Corner article for more information about IEEE floating point
numbers:

http://www.mathworks.com/company/newsletters/news_notes/pdf/Fall96Cleve.pdf

For question 4, two of the functions in the Data Type Conversion list of
functions will help you in the random selection.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/f16-6011seg05.html#f16-52710

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: Kaze on
"Steven Lord" <slord(a)mathworks.com> wrote in message <hjj53e$qaj$1(a)fred.mathworks.com>...
>
> "Kaze " <raicabogdan(a)gmail.com> wrote in message
> news:hj7m8j$23m$1(a)fred.mathworks.com...
> > Hello,
> > I need to solve a problem in matlab. Here is what I must do:
> >
> > Let F, set of all numbers in IEEE floating point, except NaN and inf,
> > whith 7ff (in hexadecimal) exponent moved and numbers not normalized
> > with superscript moved 000 (in hexadecimal)
> >
> > I realy don't know how should I start.
> >
> > After this I have to answer:
> >
> > 1. How many elements F has
> > 2. What proportion of elements of F are in the interval [1, 2)?
> > 3. What proportion of elements of F are in the interval [1/64, 1/32) ?
> > 4. I need to determine by random selection the proportion of elements of F
> > which satisfy the logical relationship: x*(1/x) == 1
>
> The first three questions you can do without using MATLAB. Take a look at
> this Cleve's Corner article for more information about IEEE floating point
> numbers:
>
> http://www.mathworks.com/company/newsletters/news_notes/pdf/Fall96Cleve.pdf
>
> For question 4, two of the functions in the Data Type Conversion list of
> functions will help you in the random selection.
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/f16-6011seg05.html#f16-52710
>
> --
> Steve Lord
> slord(a)mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> Thank you, but this was needed to be solved in matlab.
I'm going to look in the second link you provided, but as I said, I'm a beginner so ... I don't realy know what to chose from there.

Kind regards
From: James Tursa on
"Kaze " <raicabogdan(a)gmail.com> wrote in message <hji6h5$as3$1(a)fred.mathworks.com>...
> > Hmmmm ... well, now isn't that curious? You got the same answer for the number of elements of F in the interval [1,2) as in the interval [1/64,1/32). Does that seem right to you? Is that what you expect, or would you expect to get a different answer for these two questions?
> >
> > James Tursa
>
> What I aspect is to understand what I'm doing and to have no errors. Of course the problem has to be solved corecly.
>
> I get the same answer but I don't think is wrong.

Well, if you really think those results are correct then turn them in. Good luck.

James Tursa
From: Kaze on
"James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hjjf6e$8iu$1(a)fred.mathworks.com>...
> "Kaze " <raicabogdan(a)gmail.com> wrote in message <hji6h5$as3$1(a)fred.mathworks.com>...
> > > Hmmmm ... well, now isn't that curious? You got the same answer for the number of elements of F in the interval [1,2) as in the interval [1/64,1/32). Does that seem right to you? Is that what you expect, or would you expect to get a different answer for these two questions?
> > >
> > > James Tursa
> >
> > What I aspect is to understand what I'm doing and to have no errors. Of course the problem has to be solved corecly.
> >
> > I get the same answer but I don't think is wrong.
>
> Well, if you really think those results are correct then turn them in. Good luck.
>
> James Tursa

Thank you.

Regards.
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4
Prev: Differential Equations
Next: figure sizing issue