How to Combine Two Related Formulas into One in Mathematics?

  • Thread starter Thread starter lenfromkits
  • Start date Start date
AI Thread Summary
The discussion focuses on combining two related mathematical formulas into a single expression. The original formulas define 'a' based on the value of 'b': for b less than 100, a equals 4b, and for b equal to or greater than 100, a equals b/4. A piecewise function is proposed for clarity, expressed as a(b) = {4b if b < 100; b/4 if b ≥ 100}. An alternative one-line representation using the Heaviside step function is also provided: a(b) = 4b + (4/b - 4b)H(b - 100). This approach offers a more professional and compact way to express the relationship between the two formulas.
lenfromkits
Messages
106
Reaction score
0
I have a situation where I have two formulas that relate together but do not really transition from one to the other and I'm not sure how to properly write this as a single formula.

I have these two cases:
when \ b&lt;100: a=b*4

when \ b&gt;=100: a=\frac{b}{4}


I just need a nicer more professional way of writing that as one formula.

Thanks.
 
Physics news on Phys.org
Perfect. Thank you!
 
Or, if you prefer it on one line,
a(b)= 4b+ \left(\frac{4}{b}- 4b\right)H(b- 100)
where H(x) is the "Heviside step function" which is 0 for x< 0, 1 for x\ge 0.
 
You math kids, and just as I was feeling clever too...
 
So I know that electrons are fundamental, there's no 'material' that makes them up, it's like talking about a colour itself rather than a car or a flower. Now protons and neutrons and quarks and whatever other stuff is there fundamentally, I want someone to kind of teach me these, I have a lot of questions that books might not give the answer in the way I understand. Thanks
Back
Top