Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: complicated equation including bessel functions
Replies: 22   Last Post: May 8, 2013 2:43 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ghasem

Posts: 95
Registered: 4/13/13
Re: complicated equation including bessel functions
Posted: May 8, 2013 12:35 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> Yes. Instead of trying to solve for a root of f(z) = besselj(1, z) [for
> example] solve for solutions of f([x; y]) = [real(besselj(1, x+1i*y));
> imag(besselj(1, x+1i*y))]
>
> function output = mysystem(inputs)
> % The inputs are all purely real
> realPartOfInput = inputs(1);
> imagPartOfInput = inputs(2);
>
> % Build a complex number from the inputs
> z = complex(realPartOfInput, imagPartOfInput);
>
> % Now you can work with the complex value z internally
> complexOutput = besselj(1, z);
>
> % In order to return a value to FSOLVE, the outputs must be purely real
> % Break the output into its parts
> output = [real(complexOutput); imag(complexOutput)];
>
> Instead of having a system of one equation in one unknown you have a system
> of two equations (the real and imaginary parts of the BESSEL function) in
> two unknowns (the real and imaginary parts of z.)
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

====================================
Hi steve Lord.
thank you for your attention.I know that.But when complex unknowns are within argument of bessel function,do you think by using of real and imag commands,we have a real and imag expression,really?
for example,suppose we have:
syms a b % a,b are unknown
c = a+1j*b;
d = besseli(1,c);
% now write real(d),we have:
real(d) =
conj(besseli(1, a + b*i))/2 + besseli(1, a + b*i)/2
% now my question is:
do you think that "conj(besseli(1, a + b*i))/2 + besseli(1, a + b*i)/2" is a purely real expression?
I think that is not.
So,we can not use from real and imag command to obtain purely real and imaginary expression,when we have complex argument in bessel functions...
when use from real and imag commands in this case,again our equation is complex!
are you agree with me?
ghasem


Date Subject Author
5/7/13
Read complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Torsten
5/8/13
Read Re: complicated equation including bessel functions
Bruno Luong
5/8/13
Read Re: complicated equation including bessel functions
Torsten
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Bruno Luong
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Nasser Abbasi
5/8/13
Read Re: complicated equation including bessel functions
Bruno Luong
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Torsten
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Torsten
5/8/13
Read Re: complicated equation including bessel functions
Bruno Luong
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Bruno Luong
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Steven Lord
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
Steven Lord
5/8/13
Read Re: complicated equation including bessel functions
ghasem
5/8/13
Read Re: complicated equation including bessel functions
ghasem

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.