Message from @TMatthews
Discord ID: 504332256517554178
With regards to that homework question, I'd simply point out that majority black districts have almost exclusively black representatives, so it's not surprising that, when most districts and states are majority white, they'll mostly have white representatives
okay am I just dumb or does anyone else find these instructions kind of confusing
?
<@&435155896780324864>
what does "write the summary of the method interface(signature)" mean?
and what is "the recursive definition or your recursive solution"?
@Jacob
so if your function is
```python
def fibonacci(n):
if n == 0 or n == 1:
return n
else:
return fibonacci(n-1) + fibonacci(n-2)
```
Then 1. the function signature is `fibonacci(n)`. (In Java this probably looks more like `public int fibonacci(int n)`
2. the base case is
```python
if n==0 or n ==1:
return n
```
3. the recursive part is
```python
if not(n==0 or n==1):
return fibonacci(n-1) + fibonacci(n-2)
```
@ThisIsChris Thanks a lot
okay this should be pretty easy
lmao IllegalArgumentException reminds me of that "illegal opinions" meme with Merkel
lol
@Jacob you're welcome
@ThisIsChris I'm doing chain rule in Calculus 1 and would like to know how to do the problem: cot^2(sinx)
@GDoctor
1. set `y = sin(x)`
2. the derivative of `cot^2(y)` is `-1/sin^2(y)`
3. so the derivative of `cot^2(sinx)` with respect to `x` is the derivative of `cot^2(y)`with respect to `x` which is `(-1/sin^2(y)) * (dy/dx)`
4. `dy/dx = cos(x)`
5. the derivative of `cot^2(sinx)` with respect to `x` is
`(-1/sin^2(y)) * (dy/dx)`
`(-1/sin^2(sin(x))) * (cos(x))`
@ThisIsChris Thank you so much.
@GDoctor You're welcome!
Anybody know how to calculate a MONTHLY average from QUARTERLY costs? I have to write a C++ program that does that...
@GDoctor I'm not sure I understand the assignment. Since there's 3 months in a quarter then wouldn't the monthly average of a quarter be the quarterly costs divided by 3?
Anyone know how to transform a multivariate regression so that you can do a t test of B1 + 2B2 = 0 and B1 + B2 = 1? I already got it for B1 = B2
Base regression formula is Y = B0 + B1X1 + B2X2 + error
<@&387091385075105804> ^^^
Can someone take a look at a Java assignment for me?
<@&435155896780324864>
<@&387091385075105804>
I'm supposed to write a get method for a hashtable. It seems way too simple so I'm wondering if I'm missing something.
Are get methods for hashtables really that complex that this warrants an entire assignment?
Or am I overthinking it and this is actually really easy?
@Jacob In the future can you put this stuff into pastebin?
Yes
Jacob, you posted an essay about immigration a while back. I just read it recently and I have some feedback to help you improve your writing. I was thinking we could go through it via audio, or if you prefer, I can write it out.
Yes, I'll find some time
Can anyone explain how to create a cout statement in C++ that'll print a number array each time it's sorted?
@ThisIsChris perhaps?
<@&387091385075105804> ^^^
@GDoctor You want the array printed after sorting or before sorting?
I'm sad that my skills are never needed when I see the AE call. It's never something I have experience with. 😟
@micbwilli what are some of the topics you like?