Jump to content



Photo
- - - - -

Need Help With Arg() Function


  • Please log in to reply
3 replies to this topic

#1 far2055

far2055

    Casio Addict

  • Members
  • PipPipPip
  • 67 posts
  • Gender:Male
  • Location:Iran
  • Interests:Robotics - Programming - Mathematics - Physics - Computer <br />ANN ( Artificial Neural Network )<br />QBasic Lover-->before-->now-&gt;*CPLua&quot; Lover.

  • Calculators:
    classpad 300

Posted 18 February 2008 - 02:04 PM

I am working on a Contol ToolBox for ClassPad as I said before. I use CPBasic. I have some problem with arg() function. Check this:
define f(x)=(25)/( (x*j)^2 + 4*(x*j) + 25 )
												   done
arg( f( 1 ) )
												  -0.17
arg( f( x ) ) | x = 1
										  0.02+0.26*j	:blink:
where j is imaginary unit.
what is wrong? please help me!

#2 Stiftblei

Stiftblei

    Newbie

  • Members
  • Pip
  • 3 posts

  • Calculators:
    Classpad 300

Posted 18 February 2008 - 03:11 PM

Which OS do you have? OS3 gives me this:
http://imageupload.d...iew.php?fid=709

#3 Debb

Debb

    Newbie

  • Validating
  • Pip
  • 23 posts
  • Gender:Female

  • Calculators:
    ClassPad 300
    ClassPad 300+

Posted 19 February 2008 - 07:08 PM

Hi,

After talking to my math friend, she explained that the ClassPad is evaluating the expression and then substituting the value for x. If you want to force the ClassPad to evaluate using the value for x, enclose the expression and value within parenthesis.

arg(f(x)|x=1)

Debb



I am working on a Contol ToolBox for ClassPad as I said before. I use CPBasic. I have some problem with arg() function. Check this:

define f(x)=(25)/( (x*j)^2 + 4*(x*j) + 25 )
												   done
arg( f( 1 ) )
												  -0.17
arg( f( x ) ) | x = 1
										  0.02+0.26*j	:blink:
where j is imaginary unit.
what is wrong? please help me!



#4 far2055

far2055

    Casio Addict

  • Members
  • PipPipPip
  • 67 posts
  • Gender:Male
  • Location:Iran
  • Interests:Robotics - Programming - Mathematics - Physics - Computer <br />ANN ( Artificial Neural Network )<br />QBasic Lover-->before-->now-&gt;*CPLua&quot; Lover.

  • Calculators:
    classpad 300

Posted 22 February 2008 - 04:59 PM

Which OS do you have? OS3 gives me this:
http://imageupload.d...iew.php?fid=709


I use OS3. I have some problem with the link!

Hi,

After talking to my math friend, she explained that the ClassPad is evaluating the expression and then substituting the value for x. If you want to force the ClassPad to evaluate using the value for x, enclose the expression and value within parenthesis.

arg(f(x)|x=1)

Debb


Thanks for your help. But still there is a problem. What about the 2D plotter??? How can I force it to evaluate my function before evaluating the arg() function? :banghead:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users