#help-0
1 messages · Page 1019 of 1
what level math is this? High school, middle school?
hmm.. my best guess is that theta prime refers to an angle that is congruent to theta
those angles would be 35, 35 + 360, 35 - 360, -35
woah whered u get that
and maybe there's a few more combinations
well, suppose you have an angle of 35 degrees, if the second hand of the angle goes all the way around itll end up in the same place
so angle 35 + 360 is congruent to angle 35
and then if it goes all the way around the other way it's congruent again
so 35 - 360
35 - 720 would also work
35 + 720 not since it's outside of the given limit
Right because its saying 720 is greater than or equal to it okay
Do I make like a unit circle to show that
bc it wants me to show a diagram
yes, you can
I'm not sure if -35 counts though
might not depending on the definition of congruency for angles
yeah, I think it's ok
so the answer would be 35, -35 and then adding and subtracting 360 and 720 from them
35 + 360 = 395, 35 - 360 = -325, 35 - 720 = -685
-35 + 360 = 325, -35 + 720 = 685, -35 - 360 = -395
these should be all the answers, unless I missed something
assuming the prime is referring to congruent angles
So like angle -35 tho where would I draw that like and i put 35 there
so whenever it says theta and then the ' sign like that it means prime?
Oooh
because there's one
this symbol is called second ''
because there's two
' sometimes means minute as wel
positive angles go counter clockwise
so negative angles go clockwise
-35 will be at the opposite of 35 clockwise
it's best to mark your angles with circle arcs to show where they start and stop
no
Like this
they start from 0
35 goes counter clockwise
-35 goes counter clockwise
and add these markers I drew as well to help you keep track which angle is which
Ohhh'
okay that makes sense
yeah
Omg that makes so much sense the problem was so weird at first
Maybe also add arrows like this
and then 35 + 360 will go all to 35 and then all the way around
like this
I think you can figure out how to draw the remaining ones
@low forum Has your question been resolved?
oh to show the direction yes
Closed by @low forum
Use .reopen if this was a mistake.
yes
omg tyy for all that help
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Hello all. I had this shower thought yesterday and have been thinking about it ever since. Say you start with $1$, and there’s only two operations you can perform on $1$. You can double it or add one. Of course you can also apply those same operations to the result of whichever operation you applied before. What would be the most efficient (and by that I mean with less "steps"/operations) way to reach an arbitrary natural number $n$? The least efficient, of course, would be to iterate the $+1$ operation $n−1$ times. How would you approach this? Thanks.
3317
this sounds really interesting
agreed ahah, i'd like to see the solution
I'm not sure if there's a generalized solution
well you should probably iterate at the beginning at then double it no ?
but 'till when
I think there is a generalized solution
maybe python could help visualize

You can double till a feasible number
so the last step has to be adding for example
so maybe determine multiple algoriths depending on the numbers divisibility
oh yes my bad
The issue is that adding 1 in the middle of doubling could be more efficient
Indeed.
You have to do $2^m < n$ and then do $2^m+k(1) = n$
Muhammad Hussaini
Like to get to 6, I think is a counter example to your method @median dirge
This problem probably has a name no ? would bet some mathematician thought about this too ahah
m = 2 and k = 2
Not sure, really. But who knows, right?
I feel like a tree diagram would work well to visualize this
1->2->4->5->6 is your way. But you can do 1->2->3->6 @median dirge
Exactly, so the second one is more efficient.
Im just speaking generally
Actually then
We should compare two ways
I say this cause I guessed your way too at first
Oh.
Wait we're seeing the most efficient way, right?
Hmm wait
Right
I thought maybe getting to the closest power of two that is also less than $n$ and iterating $+1$ from there could lead me somewhere, but there's probably some better approach.
3317
I arrived at the same but yes there should be a better approach
would the best solution be to see if the number is even or odd ?
starting the problem by "the end"
if it's even, we know the last operation is double right ?
if it's odd we know the last operation is iterate 1
we can go like this until finding 1 probably ?
$a + 2^b(c) = n$
What if you start backwards…half the number, then minus 1 to get to 1. That’s not the best but might be a more efficient method xD
Muhammad Hussaini
except small numbers
This looks more generalized
@verbal mural
This should fit into your assumption of 6 too
And if it's odd, the operation before that must be double, aye?
We're getting somewhere.
Even -> last operation is to double
Odd -> before last operation is to double.
Idk
yhea
With this, you add 1 to get to c first, then double?
but it would work well in python but idk if it works mathematically
Actually you should help me put some constraints on it
how to put it mathematically rather
In your case of 6, c is 3
b is 1
And a = 0
Looks like
If we can derive a relation between
a b and c
We can probably create some constraints for the supergeneral equation we just made
$a + 2^b (c) =n$
Muhammad Hussaini
Ok yeah I kinda see that
Yep
I think this is true
Is it an accurate representation though?
Very general
I mean, yeah, it sure can represent every natural, but is it compliant with the process?
what number iterate when you add 1 in the middle of the process ?
So $a$ is the number of times $+1$ was used, $b$ is the number of times $\times2$ was used, but what about $c$?
3317
c is if you started iterating before multiplying by 2
And then you multiply 2, b number of times
Ooh.
So its like
Iteration before multiplication and iteration post-multiplication
That should include everything
Actually, you know what, we should discuss this question in a real good discussion channel
Is a great question!
let's say i want 10, i'd do
1 -> 2 -> **4 -> 5 ** -> 10, what number is interated in the bold section ?
Oh wait.
should we move to #proofs-and-logic maybe ? i don't know where else
Should have some constraints
Two simple rules.
Start from $n$, if it's odd, subtract one, if it's even, divide by two.
3317
Then you just deduce the optimal way..
Piecewise.
Do I think it looks like the Collatz conjecture lol
Also reccurence relation
It does lol
Oh well the only thing is, this can be put in a form of a conjecture
3317's conjecture
365->364->182->91->90->45->44->22->11->10->5->4->2->1
Is it the shortest pathway?
It seems to be, aye.
I agree 🎉 but there’s still a lot more we can do
So we cant arrive at a general form
But we can just write the steps
Yeah
Because the general form will be way more complicated
and even if find the general form, would it tell us the optimal way to get n ?
It’s hard to like reverse it too lol. Idk what the rules going forward from 1 are
It wont actually
yeah
I mean we can always get all the steps going in reverse but just the rules for going forward idk
Since the more we make it bigger, the more variables we put in and more we complicate it
It's odd, so -1, it's even, so /2, it cloggs at 0
Wait now
That's interesting.
May I add you, Muhammad?
And Raspberry?
I’m curious just how many steps it takes for each n, that would be cool to see
Or I can use C++ and SFML.
Thanks!
Sure
Yep

Lol add Sam too if he wants
Seems like you're not accepting requests, lol.
Sorry, Sam, I just got lost in excitement, haha.
Thanks.
I'll be waiting, have a good meal.
Lol
i made this lol but it's only complete for the first 30 numbers
idk it's like the chains that you can go on
when you double
250716 -> 125358 -> 62679 -> 62678 -> 31339 -> 31338 -> 15669 -> 15668 -> 7834 -> 3917 -> 3916 -> 1958 -> 979 -> 978 -> 489 -> 488 -> 244 -> 122 -> 61 -> 60 -> 30 -> 15 -> 14 -> 7 -> 6 -> 3 -> 2 -> 1
so if n is on a color, you'd stay on that color going backward, until the very first one. then go to the left, and stay on the next color
Wow, this is amazing.
Oooh.
nice
I've coded it in C.
It'll test all unsigned long long int from 2 to (unsigned long long int)-1
Literally 2 to $2^{32}-1$
3317
hey, do you still need this, i think i may have an O(1) algorythm for this
Oh woww
Yeah, I do.
O(1) ?!
Any help is appreciated.
okay so lets start by visualising it in binary
The 3317-Hussaini-Raspberry-Sam-Isus conjecture.
hmmmm
Sounds very similar to the Collatz Conjecture, if that was your goal
Wasn't, lol. But it's similar in some aspects, yea.
But this one wouldn't be hard to prove though.
doubling in binary is like multiplying by 10 in decimal
Exactly.
i didn't realize that until now lol
there are two actions you can do to your binary number, you can multiply it by 2 (which is adding 0 to the end), or you can add 1
Now it makes no sense to add 1 if you already have 1 on the end because you could have achieved this easier by multiplying the numbers by twwo (we can prove this later on)
But I think he meant we could just represent any number as a sequence of bits. As if 0 meant "add one" and 1 meant "multiply by two", I guess.
Yep.
So lets say you have number 6
in binary that is 110
you had to multiply by 2 two times and add 1 one time
So the solution should be = number of digits - 1 + number of 1s -1
with these two steps it's really like you just kinda write out the number, like a typewriter
exactly
cool
and this is always optimal because to get a 0 by adding 1s you have to do it at least twice with the exception of a starting 1
so this should be always optimal
this is well done
Yayy competetive programming has paid off
Indeed
actually that makes sense
yeah the fastest way to go to big number is probably to double up directly
when you start at 1, what you do first affects the digits on the left in binary. so the biggest digits
instead of adding one, except for power of 3s
something similar to that yeah
they dont go to 3 cause their binary representation should start with two 1s for that, no numbers here have that property
Thanks, I'm back
rightt and i imagine the first digits won't change bc he's in the 9000s
wbb
That makes sense.
And the whole thing ends in a 2->1 loop
Instead of the normal 4->2-> 1 loop
Actually
This made me conclude
That we can maybe make every number end in a certain loop
||Proving it is cursed though...||
Yeah, it's just 1n+1 if you generalize it to an+b
That is actually the best way at hand
So basically
The whole thing is not gonna have a pattern
why do you think that?
And how do you even arrive at the Converse of the Collatz conjecture
The Collatz conjecture doesnt follow a pattern
Aye, but the point was just to find the shortest possible path from 1 to n, and that was accomplished
Maybe not with formality, but yea
Yeah
Works for me
But it left us with a greater question that we're gonna discuss in your server or in any other place haha
i think you're right our methods work to kinda "solve" the n + 1 and n/2 rule (but they won't for the collatz problem)
Yep, and if anyone is interested, just DM me.
So basically
Lemme work out a little formula
For modifying the Collatz conjecture
hold on what are we trying to solve now xd (im lost)
Into a general conjecture for all natural numbers
We're done solving the help-question
Now what Im doing is modifying one of the results of the question using the Collatz conjecture
The purpose of the help channel is fulfilled I guess
i meant we can prove a "modified collatz conjecture" with an n+1 instead of 3n+1 rule and it's similar to what we just did
It is, yes.
Yeah
And I can't thank you guys enough for helping me on this.
but still it won't work for the actual collatz conjecture (as far as i can see anyway)
Closed by @opal valley
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
This converges to 0 right?
sin(-n)+sin(n)
-sin(n)+sin(n)=0
and
sin(0)=0
And it does so for any sin(n)^m where m is a positive odd integer right?
I think I'm right but not 100% sure
hmm but are you allowed to do that?
by the same reasoning the integral of x dx from -inf to +inf is 0
but I heard somewhere that's not true
idk
It doesnt work with negative numbers since theres a 1/0 and it doesnt work with even numbers since it'll obviously diverge
So if does it work with positive odd integers how would I prove if it works with all other positive odd numbers or not?
@alpine sable Has your question been resolved?
This doesn't exist
It doesn't converge to anything I think
Think of it as this
$$\lim_{(a,b)\to (-\infty, \infty)}\sum_{n=a}^{b}\sin{(n)}$$
Umbraleviathan
If you try to take the limit of sin(n) as x approaches any infinity, it's undefined as it oscillates between -1 and 1
Closed due to timeout
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Closed due to the original message being deleted
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
wondering if anyone can verify my work
it's fine but you want the point on y = ln x, not the equation of the tangent
yeah, i just asked my prof, and he also said i cant use the same variable x in my m
i guess the x in the point slope cant cancel with the x in the slope
since the slope x is a constant not a variable
😭
it's actually fine, but sure, you can use a different letter.
let (a, ln a) be the required point.
then the tangent at a is
y - ln a = 1/a (x-a)
The point (0,1) is on this, so
1 - ln a = 1/a(0-a) = -1,
i.e ln a = 2 etc etc
oh so i did the right thing
and got the right answer
just used the wrong notation?
um.. the right answer is the point on y = ln x, and this is nowhere to be found in your work
yes, give the point (x,y) so give y-coordinate too
okay, do you know if my x point was correct?
it is
i think your notation is correct
your prof may not have understood it
what you wrote in the pic you sent is correct anyway
it is slightly sloppy, which is why his prof had some misgivings with it
i also agree with @bitter vault that you should indicate the final answer as the point but that's separate
can anyone explain the notation (a, ln(a))
point with x coordinate a and y coordinate ln a
oh!
there's nothing wrong with the use of x in parts 1, 2, 3 imo
i would agree it's not the clearest method
but like i just want to say that it's not actually wrong to treat x as a variable in it
sure, but his professor has an issue with it. our opinion as strangers is worth nothing compared to his professor's opinion. his prof is the one going to be marking his work
Do y'all mind if i keep this channel open and send in another version of my answer?
with your advice in mind
fakesies described the prof's complaint as
i guess the x in the point slope cant cancel with the x in the slope
since the slope x is a constant not a variable
there was nothing wrong with the way he did this tho
it was fine to treat both x's on equal footing
gee, i'm not criticising you. let's leave it at here
i'm not offended
i'm just kinda suspicious that the prof is taking off points bc of the prof's own mistake
sussy prof 🕵️ 
er, idk if he took off points i guess, but still, i think he might've made a mistake
ah shit, lectures started
thanks for the help, y'all
wont have time to finish this one
glhf!
.close
Closed by @brazen berry
Use .reopen if this was a mistake.
oh i didn't mind lol but gl with lecture anyway
ty!
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Desmos is easy to use on mobile, sorry
Limit as i approaches infinity
Is any of this bullshit or is my work correct?
These limits aren't the same
Limit as i approaches infinity (at the top of the caption)
yes ofc
its still not the same
You have to use 2 different variables for the top and the bottom.
wdym by flipping the bounds
yes that's fine
Ariel1300
This is the correct limit
Ah damn
Then it just turns into an indeterminate form minus an indeterminate form
Or infinity minus infinity
Im too sleepy to figure out which
Thank you anyways @thick yoke, I'll sleep on it
.close
Closed by @raw wolf
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
I love the reaction of "ah fuk" to opening a help channel lol
Terms?
at the begining
a1 = 1
a2 = 2 * a1 = 2 * 1
a3 = 2 * a2
and so on
Do you mean $$a_1 =1$$
$$a_n+1=2 a_n$$?
dldh06
it's just a progression
a1 = 1
your first term
n+1 is the next term
so for n = 1
a2 = 2 a1
a3 = 2 a2
a4 = 2 a3
etc
whats the question btw?
dldh06
As mentioned, n is the term
So you want n = 1 to n = 5
And for each n, relies on the previous n term
It gives you $a_1 = 1$ as the initial term
dldh06
dldh06
The $a_{n+1}$ is just notation for the next term
dldh06
the formatting is hard to understand
do you mean this?
so yeah, what formatting did you mean?
this?
is it related to the former question?
k is something like n
a variable
do you have more info about c?
or just post your homework here xD
would be easier then
Can you post the full question? Just that statement is not enough to make a conclusive decision
like this?
open a ticket pls
go into #help-22
and ask your question there
@alpine sable
you still there?
so do you have more info?
No
and is this the term you had?
sab are you a fan of fidel castro?
then what is the task?
martin very nice profile pic
thx^^
so what is the qustion? xD
ahhhh
ok
so
you know this
and now look at what c can be
you will notice it is either 1 or -1
now think about when is c positive and when is it negative
equal?
you mean even haha
yes if n is even then c is 1
if n is odd then c is -1
now look at your n
n=2k+1
you know that k is in [0,1,2,3,...]
that makes 2*k an even number
adding one to an even number makes it odd
thus 2k+1 is odd
which is your n
so c_2k+1 is -1
you're welcome ^^
Closed by @tawdry mantle
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Could someone help? The problem is in green according to the answer on the textbook. I just don't know what I did wrong
Got it
.close
Closed by @supple fiber
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
how?
sum of squares? difference of squares?
how would that work?
do you know the formula $p^2-q^2=(p-q)(p+q)$?
JanekKwadrat
this is the difference of squares
try applying it to the denominator
and see what you get
also notice that the nominator is divisible by x^3
I wouldn't use the term divisible like that
my bad
I would say it has a GCF of x^3
well, it is divisible tho right
Divisible makes it seem like you would divide all the terms by x^3
x^3(x^3+a^2y)
(x^3+a^2y)*(x^3-a^2y)
im not sure abt this
yes
Looks right
what do I do with that?
you gotta
Now notice how some things can cancel out
Because it's the same in numerator and denominator
you mean cancel out the (x^3+a^2y) part?
yes, that's probably what they meant
then ig it would be x^3
-----
(x^3-a^2y)
that's right
ok thanks
it doesn't seem you can do much more with it
,w xxx/(xxx-aay)
seems to be as simplified as it can get
,w (x^6 + a^2 * x^3 * y)/(x^6 - a^4 * y^2) simplify
Yes, the goal of my statement was to lead you to that observation without clearly stating it
Ah, but it isnt that hard to find if you know you can cancel out something, but thanks for not instantly saying the right answer
You did ask for the next step, when the next step was to cancel stuff out
i found another interesting problem im not able to solve are that too many or is it ok?
When you do simplifying problems like that, the steps are normally, factor when you can, then cancel
Post the question
What is xx?
as far as I understand the website claimed that there are only 2 solutions
xx = x^2
You can type x^2
,w 615 + x^2 = 2^y
Yep, two solutions
hmm
well it seems like you need to find a power of 2
since that's the only way that log_2(something) can be an integer
so x^2 + 615 is a power of 2
so we know powers of 2 go like 256, 512, 1024, 2048, 4096 etc
so then we essentially just need to check integer squares one by one until we find one that is exactly 615 less than a power of 2
Interesting to decide to start at 2^8
well, might as well start close to 615 in size
so we check: 1024 - 615 = 409
2048 - 615 = 1433 etc
those are not square numbers, so we keep going until we find out that:
4096 - 615 = 3481
3481 is a square number, since 59^2 = 3481
4096 is the 12th power of 2, thus y = 12, x = 59
thanks, but I have a question
how did u know that 3481 = 59*59 did u check with calculator or did u calculate in your head?
I already knew the answer by looking at Wolfram Alpha, of course
but the idea is to check the square root of each answer until you find an integer
oh ok, I would have found it quite impressing if you had calculated in your head that 3481 = 59*59, but the explanation is quite impressing too thanks
haha I know the squares but not that high
can you help me with a little more different problem?
oh when are you back?
just ask and someone else will answer :)
but I want your opinion abt that
fine I'll be back in like 10 minutes
ok thanks
@alpine sable well thats exactly 10 minutes
nice accuracy
so
I did the problem with dldh06 and i just wanna see if u get a different answer so you in?
which one?
its about creating a functional equation
fine by me post the problem
but it's not a problem from the intenet its a problem I found on my own so I have to explain a bit
so you have 4 variables
co
cl
hp
cn
co = definable
cl = definable
hp = 30
cn = F(co, cl)
its seems strange wait a sec
why are the variables not a,b,c,d?
because I have them like that in a programm, they stand for co(coins_old), cl(clicks), hp(health_points) and cn(coins_new) but you can use A,B,C,D
so every cl, hp gets subtracted by 1 and every 30th subtraction, when hp = 0 I want hp to be reset to 30 and have a counter of how many times hp was set back (cl:hp(30))
and that counter does co*2^amount of times hp was reset
so if I have this function the problem is cl:30 can equal to = 2.5 if we have 75 for an example and is it possible to get the amounts of absolute resets without a floor function
so that the outcome would be 2^2 because hp reset would only been done 2 times so 2^number of hp resets
well instead of resetting the HP you can count the amount of damage done total
the HP is then equal to 30 - (damage modulo 30)
but saying you'd do 40 damage then you'd have negative 10 hp
no, because you use the modulo function
how would that work?
that basically ensures it goes 0,1,2,3...28,29,0,1,2,3
this is the sequence of integers modulo 30
every time it reaches 30 it subtracts 30
that's what modulo does essentially
61 modulo 30 = 1
so the output would be 1 in 61 modulo 30?
,w 61 modulo 30
61 damage dealt ==> 1 damage dealt
but wouldnt i want the output to be 2 then because the hp of the enemy went down to 0 2 times
huh?
wait a sec
honestly I'm not exactly sure what the problem actually is
or why you would want to avoid the floor function
cause im trying to get that equation without any function
i want it to be written in math that anyone would understand without the knowledge of needing to know certain functions
the design looks terrible i know so we have 4 coins
well there's no way to write it without floor or modulo I'm pretty sure
if i press the kill button 30 times, coins will be multiplied by 2 for each time im pressing the kill button 30 time
is it possible to implement that into an equation
without any external functions?
it's either 2^(total damage/30) with rounding or 2^((total damage - total damage modulo 30)/30)
look (i clicked the click button thats why 5*2=10)
the 1 was reset to 30 because it gone to 0
and the coins were multiplied by 2
those are the two solutions as far as I'm concerned
ok thanks and can you check if my math is right for the passive income section?
um, which math specifically?
oh I see
important is cps, cpsr and mg.after(500)
so after 500ms the current coins get multiplied by 1.25
and I wanted to calculate the cps(coins per seconds)
how would I do that?
or have I done it right?
it would seem to be right but I can't say I fully understand whats going on
wait i found a mistake let me change the code then analyze it again pls i need help
it's likely more appropriate to ask in a Python-related discord
its not about the code only the math
alright
ok now
it still seems like you're multiplying them right away
I do not see what passi is even doing in there
it's not like you're using that variable
is the idea that it runs the function after 500 ms?
if so then you should do mg.after(500,aftercheck) right there in the passive() body
thats why its darkened out, its for the future if i want to cancel that 500ms loop, i can only do it by mg.after_cancel(passi)
yep every 500ms aftercheck() is being ran
I see
and every 500ms coins are multiplied by 1.25
and this only happens after you get 10 thousand coins?
no thats how much the passiveincome ability costs, its the trigger
aha so when you get it a second time it will multiply it by 1.25^2 every 500ms
but my problem is I cant just multiply that by 2 so I have every second times 1.5 cause the coins * 1.25 are different coins after they were being multiplied
no do you see the line
passiveincome["state"] = DISABLED
it makes the button inaccesible after being purchased
I see
imagine it like this
you have x
x is being multiplied by 1.25 every 500ms
how can you define how much x per second you would get
how can I define how much x per second I would get?
i think i got it
is it cps = coins / ppp if ppp = 4?
for an example if x = 6
i mean 8
oh, so you're calculating the expected result of the next call
or you're calculating the exact amount you would get every second, including the stuff you already get
since this is a Cookie Clicker-type game
coins gets updated after every multiplication so every 500ms a different value of coins get multiplied
yes
not fully im calculating the expected add value (x + expectation)
aha
well, it's (1.25coins - coins)/interval
so that's 0.25coins/interval
the interval, is 500 ms I guess?
so cps = coins * 0.25 / ?
this is the amount of coins per second you would expect to add
though you need to convert ms to seconds
which is not directly possible due to the update
no
imagine this
coins = 8
after 500ms you would have 10
and after another 500ms (1 second in total) you'd have 12.5
8 * 1.5 = 12
12.5 != 12
because of the rounding, yes
what rounding?
10 * 1.25 = 12.5 but you round down
8 * 1.25 -> 10 * 1.25 -> 12.5
8 * 1.5 -> 12
no rounding done
different outputs
know imagine bigger amounts
lets say
indeed but why would you multiply by 1.5
thats not how compound interest works
1.25 * 1.25 is not 1.5
0.25c/500ms = 0.25c/0.5s = 0.5c/s (that's your statement)
0.5c/s = + c * 1.5
thats the thing being added converted in multiplication
the add value
we have to predict the outcome of the first update
we have coins
and coinsupdate ig
and then multiply that coinsupdate value by 1.25 to get the real prediction
well the coins per second is getting updated every half second
yes
it would be correct the way I wrote it then
otherwise it's 1.25^2 coins - coins / 1 second
let me import the thing you mean in python and check if it works
can you write it again?
0.5c/s ?
ok wait let me import that
the way I'd calculate it abstractly it is of course using 1000(factor - 1)coins / interval
where factor = 1.25 and interval is in milliseconds
the 1000 to convert it into seconds
this is the output if coins = 10
you can check this
im not quite sure if I understand the output tbh
oh now I see
and see I was right
nvm
i dont understand it
well turn the interval and factor into a variable then use this
what do you mean?
factor = 1.25; interval = 0.5
like this?
yeah
100% same output let me check
what output were you expecting?
if you want it to calculate two function calls ahhead
(since it goes every half second)
i understand know and its the problem i told you look at this
ignore cps: 7.8125
so after one run 10 * factos is obviously 12.5
factor*
then just do (1.25^2 - 1)coins
this is the prospective amount of coins you will get after a second
so based on that cps definition coins after two runs has to be coins(10) + first cps(6.25) which would be 16.25 but its 15.625
you mean like this?
no no
only in the calculation of cps you do it twice
factor = 1.25
(factor^2 - 1) coins
this is the cps
(assuming the interval stays 500ms otherwise you have to make it more complicated)
so like this?
minus one goes into the parens
and obviously you still need the * to multiply
coins * (factor*factor - 1)
To check if it works you have to do
10 + first cps = 2nd coins output
hmm
17.0 != 15.625
I guess I got something wrong
hmm
coins * (factor*factor) - coins
but that clearly is the same thing
i think im close to it see what i got
now cps predicts the new coins value and it works
but I want to predict the add value
did it like this if it helps
created a new variable called upcoins(updated coins)
coins + cps = coins * 1.25 * 1.25
cps = coins * 1.25 * 1.25 - coins
I don't really wanna spend more time on this
it's clearly more of a coding problem than a math problem
you cant give up on me 😦
I gotta do my own assignments too :)
for school, yknow
university
oh wow which?
thats a secret to everyone
compsci
you're studying computer science? Isnt the whole thing we were doing the past 1 hour computer science
haha yeah but I dont wanna be debugging stuff lol
what direction are you going for?
idk something like AI or maybe more math-related
ai without debugging xd?
not for free for strangers on the internet :3
it's been fun but Im gonna go now
you're not speaking german are you?
no more details I'm going
only that one
have a nice day
have a nice night
Good morning
hey whats up
also good just discussed a problem with a helper which he could not solve sadly
What problem
show
wait
?
nono
Mallik are you a boy or girl?
From where?
germany
What do you study?
nothing im going to 8th grade
Based
wdym by based?
Very cool
this was the problem btw
oh and you?
I am from Sweden
this was the problem
We won in hockey hehe
Cool
oh nice and what do you study?
12th
oh
anyone know how to solve that?
cps(coins per second)
*this is the problem
basically every 0.5 seconds coins should be multiplied by 1.25 and I want to predict the next value added to coins every second
indirectly
any1 have an idea
what is t what is c
t is second c is coin
so 0.5seconds = 12.5 coins?
well each half a second the coins multiply by 1.25
yup
but dont forget it updates, so the coins multiplied by 1.25 change every time they're multiplied
im going to bed, this is the solution i came up with bt
w
How do we get the previous amount in there
@alpine sable Has your question been resolved?
Closed due to timeout
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Closed due to the original message being deleted
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• After 15 minutes, feel free to ping <@&286206848099549185>.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
hello, i cant figure out how to prove that C^1 is not a banach space. the tip ive been given by scapeprof is that f_n = sqrt(1+x+1/n) but im clueless
@frail rivet Has your question been resolved?
$f_n=\sqrt{1+x+1/n}$
jnkena
Calculate the limit under the norm and see that limit does not belong to C_1.
We guess $f(x)=\sqrt{1+x}$.
jnkena
We want to see that $\lim_n ||f_n-f|| =0$.
jnkena
$(f_n-f)(x)=\sqrt{1+x+\frac{1}{n}}-\sqrt{1+x}$
jnkena
Oh so instead of the absolute value we use the ||.|| norm
$\sup_{x\in (-1,1)}(f_n-f)=\sqrt{2+\frac{1}{n}}-\sqrt{2}$
Yes! Think that $(\mathbb{R},| |)$ is just a special case of normed space.
jnkena
I think the supremum is √(2+1/n)-√2 isn't it, I mean, at 1, isn't?
yea true
jnkena
Clearly it tends to 0 when n goes to infinity!
And lim_n f_n = f
What does that imply?
If a sequence in a normed space has a limit, it implies it is...
it iiiis
It is a Cauchy-squence,n
!
Elements of the sequence get closer to one another because they all get closer to the limit! so convergent sequences are easily proven to be Cauchy ones!
Now... what remains to prove?
Oh i see now
that the cauchy sequence does not converge to something thats in our set
That's it
wait but it converges to 0
Ok and we got this by just lim n->inf right?
or what do you exactly mean by guessed
oh fuck a deja vu haha
jnkena
wait but why even 0
im sorry im so clueless
Oh wait i think i get it now
you subtract f from both sides so it has to equal 0??
$\lim_n ||f_n-f|| = \lim_n \sup_{x\in (-1,1)} (\sqrt{1+x+\frac{1}{n}}-\sqrt{1+x})=\lim_n (\sqrt{2+\frac{1}{n}}-\sqrt{2})=\sqrt{2+0}-\sqrt{2}=0$
jnkena
Do you understand this?
Ok and let x=1 because of the supremum
Yes
by that we prove that f_n is a convergent sequence which is also a cauchy sequence
And 1/n→0 because of n→∞
Yes
And we prove the limit is f
By that we prove $\lim_n f_n = f$
jnkena
What remains to prove?
that this does not hold for every f_n?
yea
So, do you have any idea for that?
does this have to do something that it converges to a non differentiable function?
That's exactly that
What you have to prove is that f is not differentiable in (-1,1)
so sqrt(1+x)
but it is differentiable right??
Oh no the derivative has to be differentiable right?
nvm the derivative has to be continuous thats it
Can i use f_n = sqrt(x^2 + 1/n) instead? because then it would be like the absolute function which isnt differentiable?
I mean, shouldn't it be C¹[-1,1]? It depends on your definition of C¹(-1,1)
wdym?
The intervals
yea its ]-1,1[
Is that a close interval?
No its like (-1,1)
okaj
Yes, I think you can!
No you can't
Be careful, functions must be in C1
but i dont know how to prove this
that means: that the derivative is continuous right?
$\frac{1}{2\sqrt{1+x}}$
jnkena
o.O
If the interval were [-1,1] then it would not be continuous at -1.
But since the question text has a mistake (differentiable instead of continuously differentiable) it could have two mistakes maybe XD
but why would it not be continuous at -1?
What?
Better said, it would not be defined at -1
sqrt(1 + x) = sqrt(1 + (-1)) =0?
The derivative
$C^1[-1,1]$ is not a Banach space.
jnkena
✔️