Simple way of denoting a condition on a long equation

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












I have a few equations that are rather long. They are 0 if the long part would become negative. Let's say they look something like
$$ x =begincases a+b-cd &quad textif a+b-cd > 0\0 &quad textotherwise.endcases $$
Now I would prefer not to write the whole long part again. Is there a simple way of writing this? I was looking for something like
$$ x =begincases a+b-cd &quad textif x>0\0 &quad textotherwise.endcases$$
In my case there is no way of simplifying the expression $a+b-cd$.
Thanks for your help.







share|cite|improve this question






















  • This notation doesn't work because the value of $x$ is still undefined when you compare it to $0$.
    – Yves Daoust
    Aug 13 at 9:11














up vote
2
down vote

favorite
1












I have a few equations that are rather long. They are 0 if the long part would become negative. Let's say they look something like
$$ x =begincases a+b-cd &quad textif a+b-cd > 0\0 &quad textotherwise.endcases $$
Now I would prefer not to write the whole long part again. Is there a simple way of writing this? I was looking for something like
$$ x =begincases a+b-cd &quad textif x>0\0 &quad textotherwise.endcases$$
In my case there is no way of simplifying the expression $a+b-cd$.
Thanks for your help.







share|cite|improve this question






















  • This notation doesn't work because the value of $x$ is still undefined when you compare it to $0$.
    – Yves Daoust
    Aug 13 at 9:11












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I have a few equations that are rather long. They are 0 if the long part would become negative. Let's say they look something like
$$ x =begincases a+b-cd &quad textif a+b-cd > 0\0 &quad textotherwise.endcases $$
Now I would prefer not to write the whole long part again. Is there a simple way of writing this? I was looking for something like
$$ x =begincases a+b-cd &quad textif x>0\0 &quad textotherwise.endcases$$
In my case there is no way of simplifying the expression $a+b-cd$.
Thanks for your help.







share|cite|improve this question














I have a few equations that are rather long. They are 0 if the long part would become negative. Let's say they look something like
$$ x =begincases a+b-cd &quad textif a+b-cd > 0\0 &quad textotherwise.endcases $$
Now I would prefer not to write the whole long part again. Is there a simple way of writing this? I was looking for something like
$$ x =begincases a+b-cd &quad textif x>0\0 &quad textotherwise.endcases$$
In my case there is no way of simplifying the expression $a+b-cd$.
Thanks for your help.









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 13 at 14:06

























asked Aug 13 at 8:49









user3460824

133




133











  • This notation doesn't work because the value of $x$ is still undefined when you compare it to $0$.
    – Yves Daoust
    Aug 13 at 9:11
















  • This notation doesn't work because the value of $x$ is still undefined when you compare it to $0$.
    – Yves Daoust
    Aug 13 at 9:11















This notation doesn't work because the value of $x$ is still undefined when you compare it to $0$.
– Yves Daoust
Aug 13 at 9:11




This notation doesn't work because the value of $x$ is still undefined when you compare it to $0$.
– Yves Daoust
Aug 13 at 9:11










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










Superscript $cdot^+$ is the way to go
$$
x = (a + b - cd)^+ := max(0, a + b - cd).
$$






share|cite|improve this answer




















  • that's exactly the definition of superscript +, as indicated in my answer.
    – pointguard0
    Aug 13 at 9:13










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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2881141%2fsimple-way-of-denoting-a-condition-on-a-long-equation%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










Superscript $cdot^+$ is the way to go
$$
x = (a + b - cd)^+ := max(0, a + b - cd).
$$






share|cite|improve this answer




















  • that's exactly the definition of superscript +, as indicated in my answer.
    – pointguard0
    Aug 13 at 9:13














up vote
3
down vote



accepted










Superscript $cdot^+$ is the way to go
$$
x = (a + b - cd)^+ := max(0, a + b - cd).
$$






share|cite|improve this answer




















  • that's exactly the definition of superscript +, as indicated in my answer.
    – pointguard0
    Aug 13 at 9:13












up vote
3
down vote



accepted







up vote
3
down vote



accepted






Superscript $cdot^+$ is the way to go
$$
x = (a + b - cd)^+ := max(0, a + b - cd).
$$






share|cite|improve this answer












Superscript $cdot^+$ is the way to go
$$
x = (a + b - cd)^+ := max(0, a + b - cd).
$$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Aug 13 at 9:01









pointguard0

1,269821




1,269821











  • that's exactly the definition of superscript +, as indicated in my answer.
    – pointguard0
    Aug 13 at 9:13
















  • that's exactly the definition of superscript +, as indicated in my answer.
    – pointguard0
    Aug 13 at 9:13















that's exactly the definition of superscript +, as indicated in my answer.
– pointguard0
Aug 13 at 9:13




that's exactly the definition of superscript +, as indicated in my answer.
– pointguard0
Aug 13 at 9:13












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2881141%2fsimple-way-of-denoting-a-condition-on-a-long-equation%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

How to combine Bézier curves to a surface?

Mutual Information Always Non-negative

Why am i infinitely getting the same tweet with the Twitter Search API?