Implementing Desmos Function into Java
I've got a function in desmos and want to convert it into java, but I can't figure out how I would put this:
34 Replies
ā
This post has been reserved for your question.
Hey @špothicon! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
The Sigma symbol is what i cant figure out
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
so it would just be like a+the stuff in the parenthesis?
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
ah
so if this is being used for a noise then i would probably not do something like that
n would just be a coordinate?
because im not sure what i would want to loop it to otherwise
theres no number i want to reach
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
this is the whole thing
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
a is amplitude so 4.1 looks like this
and 2.4 looks like this
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
yes
wait no
4.5 and 4.9 look the same
but 4.0 doesnt
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
i do?
well ig i do
a = 5 (5 was the same as 4.1)
but that doesnt change anything
this is what i have but it doesnt create the same result
but yeah if im not supposed to add a (amplitude) to it then maybe that was the problem
but it has to be factored in somehow
also not sure what to do about e and n
since theres no loop and i dont see what i would loop if there was one
ok i think i figured out the looping part
its what creates the extra details based on the amplitude
so i got this now
not sure if thats what e is supposed to be though
and i know n isnt supposed to be "1" but i couldnt figure out what else it would be
i think the main problem im having with understanding this is in desmos e is never defined
so i have no idea where its getting the e from
this is what it looks like with "e"
this is with "e" replaced with "3"
so whatever "e" is its making sure that everything doesnt look identical
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
what is this loll
just a random variable for 2.7182...
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
idk what logarythm means
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
ahh
alr i got this now
still isnt creating the same result as in desmos though
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
well i cant calculate the entire graph all at once
that would probably freeze
this is inside of a function that runs at each coordinate
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
it works in desmos though
see
just isnt translating to java for some reason
did i do the looping part wrong?
nah looks like even if i dont do the looping it still isnt anything like that
also what original equation are you referring to?
thats the first part of the whole thing
theres no original or nothin
well ig you could say it is the original
š¤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.