Related Articles

Related Articles

Getting complex conjugate of a complex number in Julia – conj() Method
  • Last Updated : 01 Apr, 2020

The conj() is an inbuilt function in julia which is used to compute the complex conjugate of a specified complex number z.

Syntax: conj(z)

Parameters:

  • z: Specified complex number.

Returns: It returns the complex conjugate of a specified complex number z.

Example 1:



filter_none

edit
close

play_arrow

link
brightness_4
code

# Julia program to illustrate 
# the use of conj() method
   
# Getting the complex conjugate of 
# a specified complex number z.
println(conj(0))
println(conj(1))
println(conj(1 + im))
println(conj(2 - im))

chevron_right


Output:

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

# Julia program to illustrate 
# the use of conj() method
   
# Getting the complex conjugate of 
# a specified complex number z.
println(conj(5 + 7im))
println(conj(3 - 8im))
println(conj(2 * 4im))
println(conj(3 / 2im))

chevron_right


Output:

My Personal Notes arrow_drop_up
Recommended Articles
Page :