#How to make a curve with floor

60 messages · Page 1 of 1 (latest)

lethal lintelBOT
#
  1. Do not ping the Moderators, unless someone is breaking the rules.
  2. Do not ping the Helper Moderators, unless there is a conflict between helpers.
  3. Do not ping other members randomly for help.
  4. 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.
  5. Wait patiently for a helper to come along.
  6. 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:

inner shard
#

...sounds... piecewise?

#

Like a piecewise approximation of an exponential function.

clever vector
inner shard
clever vector
#

i thought it could be done with floor() functions

inner shard
clever vector
#

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

inner shard
#

Where is this even coming from?

clever vector
#

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

inner shard
#

Unless it's supposed to be discontinuous.

clever vector
inner shard
clever vector
inner shard
clever vector
#

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

inner shard
#

I see.

#

Well, first off, you don't "double" the coefficient of x, you add 10 to it.

clever vector
#

i made a mistake

inner shard
#

Also, you should really be subtracting the cost of each new powerpoint.

clever vector
#

im trying to see the income curve, not ur current cash

inner shard
#

"Income curve", wouldn't that just be constant, since you have a constant rate of income at any given point?

clever vector
#

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

inner shard
#

A constant $20 per minute.

clever vector
#

doesnt a constant mean unchanged?

inner shard
#

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.

clever vector
#

yes the f is the confusing part

#

this is kind of what I want but the line positions are wrong

inner shard
#

And it should still be a function, which it's currently not.

clever vector
inner shard
clever vector
inner shard
clever vector
inner shard
#

Okay, stop.

#

Let's think about this.

#

How much money per minute are you earning at minute 0?

clever vector
#

there's a cap of 25 plants too, so I was thinking to wrap a min function on it too

#

10

inner shard
#

How much at minute 1?

clever vector
#

at minute 0, you're making 10

clever vector
inner shard
#

How much at minute 2?

clever vector
#

by minute 6.5, you'll have 65

inner shard
clever vector
inner shard
clever vector
#

yes, combined with a min function too!

inner shard
#

...no. That doesn't make sense.

clever vector
#

because the problem I saw was

#

I'm comparing powerplants with nuclearplants, a different item that costs more but returns more

#

if the cash kept resetting at 65, I can't really see anything

#

nevermind this doesn't matter