Function/Operation Definitions











up vote
0
down vote

favorite












If I want to define a function/operation for equivalence classes, is it permissible to stipulate contingencies based upon element characteristics or does dependency on the choice of element characteristics invalidate the definition? A possible example:
if b > a, then (a,b)+(c,d) = ab+cd
and
if b < a, then (a,b)+(c,d) = abc+d, etc.










share|cite|improve this question


















  • 1




    No, this will (in general) not yield a well-defined function. Also: The first sentence of your post makes my head hurt. That kind of convoluted language isn't in anybody's best interest when communicating about mathematics...
    – Stefan Mesken
    Nov 15 at 17:38












  • Your possible example has nothing do to with equivalence realations.
    – William Elliot
    Nov 16 at 4:25












  • An example of equivalence classes based upon element characteristics is sets of things with the same color, or classes of sets with the same cardinality.
    – William Elliot
    Nov 16 at 4:30






  • 1




    Your example is completely valid, it's an example of definition by cases (though the $+$ function here is undefined when $a=b$). However this works because this is not about equivalence classes. I'm not sure what you are trying to do with equivalence classes, depending on it you may or not be able to define functions for them.
    – Ryunaq
    Nov 16 at 15:37










  • @Ryunaq I'm approaching this backwards because I have been active in coding in imperative languages and have recently been studying functional programming. As I have focused more on the basic construction of integers and rationals, I have wondered about how operations with equivalence classes in those instances have been defined and to what extent other options are possible. I want to know what would determine the boundaries of possibility in this context, what things are off-limits in math that could be easy to do and not throw errors when done in code.
    – bblohowiak
    Nov 16 at 18:49















up vote
0
down vote

favorite












If I want to define a function/operation for equivalence classes, is it permissible to stipulate contingencies based upon element characteristics or does dependency on the choice of element characteristics invalidate the definition? A possible example:
if b > a, then (a,b)+(c,d) = ab+cd
and
if b < a, then (a,b)+(c,d) = abc+d, etc.










share|cite|improve this question


















  • 1




    No, this will (in general) not yield a well-defined function. Also: The first sentence of your post makes my head hurt. That kind of convoluted language isn't in anybody's best interest when communicating about mathematics...
    – Stefan Mesken
    Nov 15 at 17:38












  • Your possible example has nothing do to with equivalence realations.
    – William Elliot
    Nov 16 at 4:25












  • An example of equivalence classes based upon element characteristics is sets of things with the same color, or classes of sets with the same cardinality.
    – William Elliot
    Nov 16 at 4:30






  • 1




    Your example is completely valid, it's an example of definition by cases (though the $+$ function here is undefined when $a=b$). However this works because this is not about equivalence classes. I'm not sure what you are trying to do with equivalence classes, depending on it you may or not be able to define functions for them.
    – Ryunaq
    Nov 16 at 15:37










  • @Ryunaq I'm approaching this backwards because I have been active in coding in imperative languages and have recently been studying functional programming. As I have focused more on the basic construction of integers and rationals, I have wondered about how operations with equivalence classes in those instances have been defined and to what extent other options are possible. I want to know what would determine the boundaries of possibility in this context, what things are off-limits in math that could be easy to do and not throw errors when done in code.
    – bblohowiak
    Nov 16 at 18:49













up vote
0
down vote

favorite









up vote
0
down vote

favorite











If I want to define a function/operation for equivalence classes, is it permissible to stipulate contingencies based upon element characteristics or does dependency on the choice of element characteristics invalidate the definition? A possible example:
if b > a, then (a,b)+(c,d) = ab+cd
and
if b < a, then (a,b)+(c,d) = abc+d, etc.










share|cite|improve this question













If I want to define a function/operation for equivalence classes, is it permissible to stipulate contingencies based upon element characteristics or does dependency on the choice of element characteristics invalidate the definition? A possible example:
if b > a, then (a,b)+(c,d) = ab+cd
and
if b < a, then (a,b)+(c,d) = abc+d, etc.







functions elementary-set-theory binary-operations






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 15 at 17:15









bblohowiak

517




517








  • 1




    No, this will (in general) not yield a well-defined function. Also: The first sentence of your post makes my head hurt. That kind of convoluted language isn't in anybody's best interest when communicating about mathematics...
    – Stefan Mesken
    Nov 15 at 17:38












  • Your possible example has nothing do to with equivalence realations.
    – William Elliot
    Nov 16 at 4:25












  • An example of equivalence classes based upon element characteristics is sets of things with the same color, or classes of sets with the same cardinality.
    – William Elliot
    Nov 16 at 4:30






  • 1




    Your example is completely valid, it's an example of definition by cases (though the $+$ function here is undefined when $a=b$). However this works because this is not about equivalence classes. I'm not sure what you are trying to do with equivalence classes, depending on it you may or not be able to define functions for them.
    – Ryunaq
    Nov 16 at 15:37










  • @Ryunaq I'm approaching this backwards because I have been active in coding in imperative languages and have recently been studying functional programming. As I have focused more on the basic construction of integers and rationals, I have wondered about how operations with equivalence classes in those instances have been defined and to what extent other options are possible. I want to know what would determine the boundaries of possibility in this context, what things are off-limits in math that could be easy to do and not throw errors when done in code.
    – bblohowiak
    Nov 16 at 18:49














  • 1




    No, this will (in general) not yield a well-defined function. Also: The first sentence of your post makes my head hurt. That kind of convoluted language isn't in anybody's best interest when communicating about mathematics...
    – Stefan Mesken
    Nov 15 at 17:38












  • Your possible example has nothing do to with equivalence realations.
    – William Elliot
    Nov 16 at 4:25












  • An example of equivalence classes based upon element characteristics is sets of things with the same color, or classes of sets with the same cardinality.
    – William Elliot
    Nov 16 at 4:30






  • 1




    Your example is completely valid, it's an example of definition by cases (though the $+$ function here is undefined when $a=b$). However this works because this is not about equivalence classes. I'm not sure what you are trying to do with equivalence classes, depending on it you may or not be able to define functions for them.
    – Ryunaq
    Nov 16 at 15:37










  • @Ryunaq I'm approaching this backwards because I have been active in coding in imperative languages and have recently been studying functional programming. As I have focused more on the basic construction of integers and rationals, I have wondered about how operations with equivalence classes in those instances have been defined and to what extent other options are possible. I want to know what would determine the boundaries of possibility in this context, what things are off-limits in math that could be easy to do and not throw errors when done in code.
    – bblohowiak
    Nov 16 at 18:49








1




1




No, this will (in general) not yield a well-defined function. Also: The first sentence of your post makes my head hurt. That kind of convoluted language isn't in anybody's best interest when communicating about mathematics...
– Stefan Mesken
Nov 15 at 17:38






No, this will (in general) not yield a well-defined function. Also: The first sentence of your post makes my head hurt. That kind of convoluted language isn't in anybody's best interest when communicating about mathematics...
– Stefan Mesken
Nov 15 at 17:38














Your possible example has nothing do to with equivalence realations.
– William Elliot
Nov 16 at 4:25






Your possible example has nothing do to with equivalence realations.
– William Elliot
Nov 16 at 4:25














An example of equivalence classes based upon element characteristics is sets of things with the same color, or classes of sets with the same cardinality.
– William Elliot
Nov 16 at 4:30




An example of equivalence classes based upon element characteristics is sets of things with the same color, or classes of sets with the same cardinality.
– William Elliot
Nov 16 at 4:30




1




1




Your example is completely valid, it's an example of definition by cases (though the $+$ function here is undefined when $a=b$). However this works because this is not about equivalence classes. I'm not sure what you are trying to do with equivalence classes, depending on it you may or not be able to define functions for them.
– Ryunaq
Nov 16 at 15:37




Your example is completely valid, it's an example of definition by cases (though the $+$ function here is undefined when $a=b$). However this works because this is not about equivalence classes. I'm not sure what you are trying to do with equivalence classes, depending on it you may or not be able to define functions for them.
– Ryunaq
Nov 16 at 15:37












@Ryunaq I'm approaching this backwards because I have been active in coding in imperative languages and have recently been studying functional programming. As I have focused more on the basic construction of integers and rationals, I have wondered about how operations with equivalence classes in those instances have been defined and to what extent other options are possible. I want to know what would determine the boundaries of possibility in this context, what things are off-limits in math that could be easy to do and not throw errors when done in code.
– bblohowiak
Nov 16 at 18:49




@Ryunaq I'm approaching this backwards because I have been active in coding in imperative languages and have recently been studying functional programming. As I have focused more on the basic construction of integers and rationals, I have wondered about how operations with equivalence classes in those instances have been defined and to what extent other options are possible. I want to know what would determine the boundaries of possibility in this context, what things are off-limits in math that could be easy to do and not throw errors when done in code.
– bblohowiak
Nov 16 at 18:49















active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999980%2ffunction-operation-definitions%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999980%2ffunction-operation-definitions%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix