Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Creating Domain objects' topicStudent Support Forum > General > Archives > "Creating Domain objects"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Nasser M. Abbasi
01/29/12 00:20am

Problem is, there is a domain for Reals, Integers, Complexes, etc. but not for Positives. How can I define such a domain?
=========

may be because "Positive" is not a mathematical "domain". it is an attribute of an object. The object is the one which is in the mathematical domain such as Reals or Integers, etc...

It is in a way like a color of an object. You want to make a color be an object.

But assuming there is such a thing, how will you use it? You will have to write

Assuming[Element[{a,b,c,d},Positive],....]

How is that more useful than just writing

Assuming[Greater[#,0] &/@ {a, b, c, d},...]

--Nasser





URL: ,

Subject (listing for 'Creating Domain objects')
Author Date Posted
Creating Domain objects David 01/27/12 6:10pm
Re: Creating Domain objects Nasser M. Ab... 01/29/12 00:20am
< Previous CommentHelp | Reply To Comment | Reply To Topic