Defining a Function from a Set: A Practical Guide

  • Thread starter Thread starter jsmith0476
  • Start date Start date
  • Tags Tags
    Functions Sets
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
jsmith0476
Messages
5
Reaction score
0
Let A = {{1,2},{1,3},{2},{2,5},{3,4,5}}. Define f : A-->N by f(a)=the sum of the elements of a (for all a that are a member of A).

I am just not sure how to define a function from a set. I have been really sick and haven't been able to make it to class :( Can someone point me in the right direction?
 
Physics news on Phys.org
So I have been reading some other posts and I think I understand it a bit more. Tell me if this would be right:

f( {2} ) = 2,
f( {1,2} ) = 1 + 2 = 3,
f( {1,3} ) = 1 + 3 = 4,
f( {2,5} ) = 2 + 5 = 7,
f( {3,4,5} ) = 3 + 4 + 5 = 12.

And so if I were to find the range of f it would be f = {2, 3, 4, 7, 12}??