Reputation
221
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 7
Newest
 Yearling
Impact
~24k people reached

  • 0 posts edited
  • 0 helpful flags
  • 8 votes cast
Apr
3
awarded  Yearling
Mar
24
awarded  Informed
Mar
23
awarded  Commentator
Mar
23
awarded  Scholar
Mar
23
comment Find a function with certain requirements
Thank you for your elaborate answer!
Mar
23
comment Find a function with certain requirements
Thank you very much. I like your approach best, although it is quite limited to $g(x) = ax+b$, but nonetheless practical.
Mar
23
accepted Find a function with certain requirements
Mar
23
comment Find a function with certain requirements
Sorry, somehow I did something wrong and I calculated $k$ incorrectly. Your method does work! Still, I want to know why you start with $(x+k)^2\cdot(y+1)=(k+x_1)^2$
Mar
23
comment Find a function with certain requirements
Is this correct for any $x_0, x_1, x_2$ and $y_\max$? I like your answer, however, I don't know why you start with that particular equation of the blue curve. Could you explain why you chose to generalise with that function, using only $k$ as a parameter? I tried your method in MATLAB and it works for $x_1 = 2$, but not for other values because then $f(x_2) \neq 0$. And is the following a correct generalisation of your $f(x)$": $f(x) = y_\max / ( h(x1) - h(x0) ) \cdot ( h(x) - h(x0) )$?
Mar
20
revised Find a function with certain requirements
added 128 characters in body
Mar
20
comment Find a function with certain requirements
That is correct.
Mar
20
comment Find a function with certain requirements
@String - What do you mean by "remaining"? The values I want them to be? Then I'd answer: $x_1 = 2, y_\max=2, x_2=7, g(x)=ax+b$. The last one, $x_a$, is not given beforehand and is calculated in the process, but it needs to be negative to ensure the desired shape.
Mar
20
comment Find a function with certain requirements
Unfortunately, this doesn't move the $x$-position of the peak: $x_1$ to the desired value. Either way thanks for the simple and logical solution to get the right $y_\max$. (an example, I want the peak to be at $x_1=2$ and $f(x_1)=2$, instead of the peak in the example figure).
Mar
20
awarded  Editor
Mar
20
revised Find a function with certain requirements
added 3 characters in body
Mar
20
asked Find a function with certain requirements
Mar
3
asked Integral of reciprocal of a piecewise linear function
Mar
3
comment Marking 2 data points on a plot
Does T=12; plot(T,[u1 u2],'*') not work?
Feb
25
comment What are best practices when writing (sub)equations?
Ok, thanks! I know the number is better aligned to the right of the page, I didn't know how to easily type it. My examples were just about the number, not their position. I was just wondering what would be reasons for the use of subnumbers/letters. I also thought: why not simply use one sequence? It is indeed easier on the reader.
Feb
24
awarded  Student