Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Getting complex conjugate of a complex number in Julia – conj() Method

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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:




# 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))

Output:

Example 2:




# 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))

Output:

My Personal Notes arrow_drop_up
Last Updated : 01 Apr, 2020
Like Article
Save Article
Similar Reads