Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'problems w/ {}brackets when using IF w/ variabl...' topicStudent Support Forum > General > "problems w/ {}brackets when using IF w/ variabl..."

Next Comment >Help | Reply To Topic
Author Comment/Response
Tim Kochanski
09/14/04 9:09pm

What about this one. "C" is just some list and "avgvol" and "stddev" are just some variables I computed. When I do this,

If[N[(c[[j + 1]] - c[[j]])/c[[j]] ] < avgvol + stddev*2, z = 0, z = 1]

I get this output

If[{0.07551} < {0.168262}, z = 0, z = 1]

I need to get rid of those {} brackets so that the IF command will work and spit out z=0 or z=1, which I plan to use later on. Any suggestions.


URL: ,

Subject (listing for 'problems w/ {}brackets when using IF w/ variabl...')
Author Date Posted
problems w/ {}brackets when using IF w/ variabl... Tim Kochanski 09/14/04 9:09pm
Re: problems w/ {}brackets when using IF w/ var... Forum Modera... 09/15/04 09:39am
Re: problems w/ {}brackets when using IF w/ var... Tim Kochanski 09/15/04 1:04pm
Next Comment >Help | Reply To Topic