#How to make a curve with floor
60 messages · Page 1 of 1 (latest)
- Do not ping the Moderators, unless someone is breaking the rules.
- Do not ping the Helper Moderators, unless there is a conflict between helpers.
- Do not ping other members randomly for help.
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:
+close
Feel free to nominate the person for helper of the week in #helper-nominations
If you're happy with the help you got here, and the server overall, you can contribute financially as well:
cant u do it without writing the { character?
...what?
i thought it could be done with floor() functions
That is still a piecewise function, and how did you imagine that would work?
well the graph is pretty much y = 10x, but the multiplier doubles after every 65 y, so you use floor on y / 65 or x / 6.5 somehow (this part is confusing) and make that the exponent of 2 to multiply with 10 in 10x to make it double
That's not remotely "pretty much y = 10x".
Where is this even coming from?
i mean it starts off as y = 10x, then after certain points, x = 6.5 it becomes y = 20x, then x = 9.75 it becomes y = 40x
It doesn't actually "become y = 20x", either.
Unless it's supposed to be discontinuous.
it's part of a roi calculation for something
For what?
roblox
Okay, explain the actual parameters of the problem, please.
a powerplant costs $65, and it generates $10 per min. you start off with $10 income per minute too. i'm trying to visualize what the income curve looks like if you continously buy a powerplant the moment you can afford it
i made a mistake
Also, you should really be subtracting the cost of each new powerpoint.
yep but if you write it in desmos it wont go over 65 and doesn't really help with seeing the difference
im trying to see the income curve, not ur current cash
"Income curve", wouldn't that just be constant, since you have a constant rate of income at any given point?
no it increases with the more plants you have
at the start you make $10 per minute
if you have 1 plant, you now make $20 per minute
A constant $20 per minute.
doesnt a constant mean unchanged?
I mean, it would increase, so it would have a discontinuity, but you're looking at something more like 10 * floor(f(t)) for some f than anything else.
yes the f is the confusing part
this is kind of what I want but the line positions are wrong
Also they should be straight horizontal lines.
And it should still be a function, which it's currently not.
it looks like I have to base it off current cash so it goes up
What do you mean "have to"? You don't "have to" do anything, you're making this up for fun.
what do u mean? you can apply that to anything
...not to stuff you're not making up for fun.
I meant I changed my mind because you brought up the point that they had to be straight horizontal lines
Okay, stop.
Let's think about this.
How much money per minute are you earning at minute 0?
there's a cap of 25 plants too, so I was thinking to wrap a min function on it too
10
How much at minute 1?
at minute 0, you're making 10
20*
How much at minute 2?
by minute 6.5, you'll have 65
You just said you don't want a function that tells you how much money you have.
yes sorry, I've changed my mind because you brought up a good point
So you do want a function that tells you how much money you have?
yes, combined with a min function too!
...no. That doesn't make sense.