# Creating one Set from another using Set Builder Notation

I'm a little confused about set builder notation. If I have one set, how do I construct another set from the first set, supposing that I want to alter all the elements?

For example,

Let there be a set $A = \{1,2,3,4,5\}$

and I want to construct, from $A$, a set $B = \{\sqrt{1},\sqrt{2},\sqrt{3},\sqrt{4},\sqrt{5}\}$.

What is the correct notation to do this? Surely it isn't $B = \{a \in A | \sqrt{a}\}$?

-

Not quite. You'd want $$\{\sqrt{a} | a \in A\}$$