-
Posts
50 -
Joined
-
Last visited
Awards
This user doesn't have any awards
Profile Information
-
Gender
Male
System
-
CPU
Intel Core i5-9600k
-
Motherboard
Gigabyte Z390 UD
-
RAM
16GB DDR4 (2x8) 2133 Mhz
-
GPU
EVGA GTX 1080 SSC
-
Case
NZXT H500
-
Storage
250 GB Samsung 840 Evo(Boot) + 500GB SSD (Fast storage) + 2 TB HDD
-
PSU
CX650M
-
Display(s)
Acer XF270HU + Dell P2750Q
-
Cooling
Hyper 212 Evo
-
Keyboard
Corsair K70 Strafe
-
Mouse
Logitech G502
-
Sound
Logitech G933
-
Operating System
W10
Recent Profile Visitors
1,473 profile views
Single Infinity's Achievements
-
Looks pretty good. I'm not familiar with drop.com though. Can you vouch or is this just from searching? E: Never mind, turns out this is just the new URL for massdrop I guess. This is good timing and I'm going with this.
-
I looked into that one previously but the more recent reviews hit at a lot of quality issues so shied away.
-
Single Infinity changed their profile photo
-
I'm finally willing to spend some money on a decent(ish) chair. I'm looking for suggestions matching the following criteria Comfortable for smaller people (5'7", 145lb) Price range $100-300 USD Preferably something available with prime Adjustable arm rests Colors/materials aren't particularly important to me What are your guy's suggestions?
-
Nevermind, solved.
-
Vessel: Single_Infinity https://www.vessel.com/videos/LCoY5zfFf- Storage https://www.vessel.com/videos/JYZEYDYx0- Hard pipe
-
2x £100 AMAZON GIFT CARD GIVEAWAY! :) [CLOSED]
Single Infinity replied to iHammmy's topic in Off Topic
This is a comment. -
Each method just broke down a piece of what I assumed the recursion would take care of into separate pieces. eachNumber figures out the number of each factorial, based it fitting in the base(givenInt). Stringbuild just put them into a string including asterisk and exclamation point for final output. For clarity, that bit of code was to help me figure out what I was doing, and none of it will be in my final product.
-
The small blurb above states it doesn't show pieces that have leading zeroes. They need to be shown, but I figured debugging code that I'm not going to actually use is pointless. Also, as I said, I understand basic recursion, but it's been quite a while since I've touched Java at all, and am having to for a discrete structures class. Am I missing some glaringly obvious solution?
-
I understand the basics to recursion, although I haven't done it in a while. My issue is partly figuring out how to set up a cantor expansion in logic.
-
I think you misunderstand. I need to output a cantor expansion. The cantor expansion for 256 = 2*5! + 0*4! + 2*3! + 2*2! + 0*1! , where ! is factorial. As far as I understand, I need out find the largest factorial that is lower than the input, find out how many times it is used, and continuously do that with the remainder till there is none.
-
I need to write a bit of recursive code that outputs the cantor expansion of a base 10 number. The cantor expansion is as follows: x = an n! + an-1(n-1)!+...+a11! I'm not really sure where to start with this. I got a semi-working bit of code that does this with loops, but I need it done recursively. Any help is appreciated on starting this. I understand basic recursion. A major problem I'm having is setting up logic for a cantor expansion using recursion though. Loop code (doesn't display pieces of expansion with leading zeros, but needs to). public class Test{ public static void main(String[] args) { int givenInt = 256; for (int i = 0; i < 3; i++) { String built = stringBuild(givenInt); System.out.println(built); String check = "" + built.charAt(2); givenInt = givenInt % computeFactorial(Integer.parseInt(check)); // remainder } } public static String stringBuild(int givenInt) { int n = eachNumber(givenInt); int multiple = givenInt / computeFactorial(n); return multiple + "*" + n + "!"; } public static int eachNumber(int givenInt) { int n = 1; int result = computeFactorial(n); while(result < givenInt) { n++; result = computeFactorial(n); } n--; return n; } public static int computeFactorial(int n) { int result = 1; for (int i = 1; i <= n; i++) { result = result * i; } return result; }}
-
I really love the front facing speakers and that Dbrand decided to give you a phone to review, considering how surprised I was at the improvements.