#homework-help (Discord ID: 387060078433271808) in MacGuyver - Skills & Academics, page 2

753 total messages. Viewing 250 per page.
Prev | Page 2/4 | Next

2018-01-30 05:10:25 UTC

This sounds a lot like mastering physics

2018-01-30 05:10:27 UTC

Whenever you get it wrong

2018-01-30 05:10:40 UTC

Yeah haha and I am not a scientific person

2018-01-30 05:10:47 UTC

I'm majoring in media production.

2018-01-30 05:12:20 UTC

Bring it up with whoever you can. If you actually understand the concepts you shouldnโ€™t be graded down

2018-01-30 05:14:51 UTC

I might. My instructor is Asian with a broken accent of course. Yeah I've demonstrated that I understand how to do the concepts

2018-01-30 05:16:07 UTC

Send screenshots or show photos of your work and really nail them down. Say โ€œshow me whatโ€™s wrong or the programming is badโ€

2018-01-30 05:16:46 UTC

If you have white TAs or even TAs that speak English use them

2018-01-30 05:16:56 UTC

What's a TA?

2018-01-30 05:17:01 UTC

Oh nvm

2018-01-30 05:17:02 UTC


2018-01-30 05:17:07 UTC

Sorry duh

2018-01-30 05:17:32 UTC

Oh I thought it was joke, haha. Youโ€™re good

2018-01-30 05:18:16 UTC

I got my STEM degree on the west coast so I know a thing or two about Asian โ€œteachersโ€

2018-01-30 05:19:08 UTC

This guy isn't even a "teacher" he just sits at his desk while we come into class to work on a $100 computer program

2018-01-30 05:19:12 UTC

Straight up caught a Chinese born TA giving answers to a Chinese born student before the midterm in office hours

2018-01-30 05:19:25 UTC


2018-01-30 05:19:49 UTC

The educational system is welfare for people that want to pretend they have a job

2018-01-30 05:20:17 UTC

Thatโ€™s why itโ€™s occupied by women at the lower levels

2018-01-30 05:21:02 UTC

That and the fact that it is about nurturing children until about 6th or 7th grade

2018-01-30 05:24:52 UTC

Yeah pretty much. At the lower level it's not too bad. But after that I can agree. I'm gonna have to see if there's any white TAs around lol

2018-01-31 14:26:35 UTC

Was there a guy in here offering Calculus help

2018-01-31 15:17:35 UTC

I may an hero if I have to listen to my 1st Gen immigrant instructor try to explain Calculus concepts without teaching how to solve problems.

2018-01-31 18:45:42 UTC


2018-01-31 18:46:48 UTC

@Deleted User there are a few of us who can help with calculus. Personally I used to teach it for many years. What kind of problems are you trying to solve?

2018-01-31 19:17:28 UTC

We started with limits and are moving into derivatives and tangent lines. It just seems like the instructor is getting high on his own supply of math knowledge and not teaching us a clear cut way to solve the problems.

2018-01-31 19:20:08 UTC

He also doesnโ€™t explain any rule he uses especially with algebraic manipulation which makes it difficult to follow.

2018-01-31 19:22:48 UTC

Iโ€™m having trouble recognizing the problems and what rule to apply to find solutions

2018-01-31 20:41:56 UTC

read the book along with the class

2018-01-31 20:42:09 UTC

also, talk to the dept head maybe

2018-01-31 22:17:38 UTC

Yeah right now Iโ€™m fairly reliant on the YouTube.

2018-01-31 22:30:04 UTC

@Deleted User feel free to regularly post photos of problems you are working on

2018-01-31 22:30:23 UTC

Sure when I hit a roadblock Iโ€™ll post a pic

2018-01-31 23:48:36 UTC

@Deleted User Professor Leonard on YouTube has great videos for calc concepts. Also feel free to post pictures of problems if you want to.

2018-02-02 05:35:14 UTC

this Professor Leonard guy is swole af

2018-02-05 22:19:24 UTC

Does anyone here know Matlab? Iโ€™m taking a Matlab class and am super confused

2018-02-05 22:20:46 UTC

@Sam Southern - TN I know *some* Matlab, what's up?

2018-02-05 22:21:54 UTC

Driving rn, Iโ€™ll send what Iโ€™m working on in like 10. Itโ€™s basic (apparently lol), but I am not good at the cyber

2018-02-05 22:22:12 UTC

Gen Z not being good at cyber hahah not living up to my gen I know

2018-02-05 22:24:17 UTC

@Sam Southern - TN sounds good, post it when you can

2018-02-05 22:45:16 UTC

1. Write a function (I'm calling it v) that takes in two scalars (a and b) spits out a vector (v) that is a row vector of the length b with the terms being the first a powers of b

2018-02-05 22:45:53 UTC

So I tried to do someting like this:
function v = hw1_problem5(a,b)
b = length(v);
v = a.^b;

2018-02-05 22:46:34 UTC

so that the function length would track with b and the vector would be that length

2018-02-05 22:46:54 UTC

and the vector itself would use vector exponent rule of .^ to raise each to the correct power

2018-02-05 22:47:07 UTC

but it's only giving me the first output instead of all of the outputs

2018-02-05 22:47:57 UTC

for example, when I input hw1_problem5(2,3), it should output a row vector containing the first 3 powers of 2

2018-02-05 22:48:04 UTC

so [2 4 8]

2018-02-05 22:48:24 UTC

but it only gives [2]

2018-02-05 22:48:34 UTC

so it's not accepting my length argument somehow

2018-02-05 22:51:23 UTC

there's another one after that that involves zeroing out part of an array in certain locations, but I'll take any help i can get

2018-02-05 22:51:27 UTC

shit is so confusing to me

2018-02-05 22:53:44 UTC

@ThisIsChris let me know if that doesn't make sense

2018-02-05 23:09:01 UTC

if any other <@&387091385075105804> know how to matlab, I would greatly appreciate the help!

2018-02-05 23:16:15 UTC

@Sam Southern - TN the second line, `b = length(v);` is changing the value of b

2018-02-05 23:16:33 UTC

how do I set the length of the vector to b?

2018-02-05 23:18:20 UTC

@Sam Southern - TN so first I would make a vector of 1..b, I'll call it powers, s

2018-02-05 23:18:32 UTC

`powers = 1:b`

2018-02-05 23:18:38 UTC


2018-02-05 23:18:50 UTC

`v = a.^b`

2018-02-05 23:19:57 UTC

now it's giving me the last one instead of the first one as the output

2018-02-05 23:20:01 UTC

so [8]

2018-02-05 23:20:05 UTC

instead of [2]

2018-02-05 23:20:10 UTC

but not [2 4 8]

2018-02-05 23:21:57 UTC

hmm I see, I'm at work now will have to check this out in a little while (unless someone else steps in ๐Ÿ™‚ )

2018-02-05 23:22:39 UTC

thanks for trying though, I do appreciate it

2018-02-06 00:31:20 UTC
2018-02-06 00:31:27 UTC


2018-02-06 00:32:02 UTC

The trick I had to remember was that a function that accepts scaler, if you plug in a vector, will return you a vector with the function applied to each entry

2018-02-06 00:32:34 UTC

that, and making the vector 1...b is `1:b`

2018-02-06 02:25:10 UTC

@ThisIsChris thank you, that works!

2018-02-06 02:25:38 UTC

just got back from work, happy to see this finally work hahah

2018-02-06 02:26:04 UTC

@Sam Southern - TN You're weclome! ๐Ÿ˜„

2018-02-07 03:58:21 UTC

Whoever recommended Professor Leonard. Probably the best videos I've found for this. Much appreciated

2018-02-07 04:32:50 UTC
2018-02-07 05:10:43 UTC

@Deleted User My pleasure

2018-02-14 03:09:04 UTC

I was wondering if someone could help me with a problem for my financial mathematics class?

2018-02-14 03:09:35 UTC


2018-02-14 03:32:28 UTC

@Tycho Brahe @Zyzz you guys too may have some insight for @Deleted User ?

2018-02-14 03:34:38 UTC

I'll go ahead and post a screenshot of the problem so people could see if they would be able to help.

2018-02-14 03:34:57 UTC

@Deleted User What's the question? If you drop it here then when someone who can help comes on they can work on it

2018-02-14 03:35:13 UTC

yeah perfect

2018-02-14 03:35:22 UTC


2018-02-14 03:38:56 UTC

Here are my notes. The example is supposed to align with how to do the problem, I just canโ€™t seem to get the right answer.

2018-02-14 03:38:59 UTC


2018-02-14 03:39:44 UTC

Let me know if my notes can't be read.

2018-02-14 04:02:15 UTC

I'm going to get some rest for tonight, but if anyone would still want to look at it and give me some guidance, I would greatly appreciate it. ๐Ÿ˜ƒ

2018-02-14 04:18:00 UTC

First, find future value:
FV = Principle\*(1 + rate\*time)
FV = 875*(1 + .1025 * 2)
FV = 1054.375

Then in one year there will be one year on the note left, and the bank is going to discount that at a 17.5% rate, so the discounted value the bank pays satisfies:
FV = DV * (1 + .175 * 1)

Plugging in the value for FV from before:
1054.375 = DV * (1.175)

Dividing both sides by 1.175 we get:

2018-02-14 04:18:38 UTC

DV = 897.3404255319 = 897.34

2018-02-14 04:20:24 UTC

So the holder of the note went from 875 to 897.34 in one year, so he has his own future value calculation he can plug values into:
897.34 = 875\*(1 + rate_for_holder \* 1)

dividing both sides by 875 you get:

2018-02-14 04:21:31 UTC

1.0255314286 = 1 + rate_for_holder
so rate_for_holder = 0.0255314286... ~~ 0.026
so the rate for the holder is 2.6%

2018-02-14 04:22:33 UTC
2018-02-14 14:52:16 UTC

Thank you! @ThisIsChris I think I understand it much better now.

2018-02-14 19:15:49 UTC

My pleasure! @Deleted User

2018-02-19 17:11:50 UTC

Hey everyone I need some math help. I'm trying to do the final problem and I can't figure it out.

The best I've come up with is that the 2S-S argument only works for 2S -S, if you go above 2S-S to say 3S-2S, then it diverges to infinity. Also the r-value of 2 cannot be used in the geometric series sum equation as it is not between -1&1.

Any help is super appreciated.


2018-02-19 22:46:28 UTC

If you talk about 3S you're just bringing more things in that you don't need.

2018-02-19 22:48:32 UTC

when you do 2S-S you should have the same number of elements on both sides, or at least write it in the form of a sum

2018-02-19 22:49:31 UTC

If you subtract these two sums, you should subtract the first from the first, the second from the second, etc.

2018-02-20 01:02:43 UTC

So what you're saying is that the proof relies on ignoring standard rules of subtraction with equal terms.

2018-02-20 01:06:33 UTC

It makes the assumption that you can subtract the 2+4+8+... of the S from the 2S while leaving the 1 untouched which negates the idea of infinity because it is adding terms to S that it is not adding to 2S to leave the 1 untouched.

2018-02-20 01:11:27 UTC

When they subtract terms in the example, they're kind of cherry picking which to subtract first. It's not written in a strict mathematical way, so it flies under the radar. Imagine you said s = 1+1+1+..... You could say s -s = (1+1+...) -(1+....) = 1, yet s-s should be 0.

2018-02-20 01:11:42 UTC

So you can point out that it's not written in a very precise way.

2018-02-20 01:20:04 UTC

That makes sense. The proof isn't valid because it relies on a specific way to subtract the sums which doesn't follow mathematical rules.

2018-02-20 01:20:14 UTC

Do I have that right?

2018-02-20 01:25:12 UTC

@JC17-OR correct, the proof relies on the sum being the same if you are allowed to rearrange terms, but you are not guaranteed to be able to do that if the series is not absolutely convergent

2018-02-20 01:26:01 UTC

Or you could say that they are using a different number of terms in each series in order to get the result that did. Which means that they didn't acttually double s, since s and 2s should have the same number of terms. If both series have the same number of terms, they end up with 2s-s = 2^N - 1, where N is the number of terms.

2018-02-20 01:30:12 UTC

@JC17-OR You can also just prove that the series diverges just by making the terms rigorous:
Define S_n = sum i from 0..n of i^2
Then S = lim n->inf S_n

S_n you can compute explicitly, because it is a finite sum you can do:
2\*S_n - S_n = 2\*(n+1) - 1
i.e. S_n = 2^(n+1) - 1

so S = lim n-> inf 2^(n+1) - 1 = inf

2018-02-20 01:30:47 UTC

That makes alot of sense.

2018-02-20 01:31:32 UTC

Any thoughts on the 4th problem. My teacher hasn't been much help and my classmates are as lost as I am.

2018-02-20 01:36:48 UTC

I figured I could take out the 1/sqrt(2pi) and have the integral e^(-x^2/2), integrate that and do the Taylor series that way, but that didn't work out.

2018-02-20 01:38:21 UTC

@JC17-OR Unforunately I have to eat dinner now, but here is the lead, the derivative of F is f(x), but you know the taylor series for f(x), just take the taylor series for e^x and plug in (-x^2) where x is

2018-02-20 01:39:50 UTC

So the taylor series for F is just the antiderivative of the taylor series for e^x * 1/sqrt(2pi) with (-x^2) plugged into x

2018-02-20 01:43:46 UTC

Thanks for the help!

2018-02-20 01:50:16 UTC

@JC17-OR You're welcome! Here's the full demonstration in case you want it:
F is the antiderivative of f so first find the taylor series of f:
f(x) = (1/sqrt(2pi)) * e^(-x^2)
taylor series for e^y is:
e^y = 1 + y + y^2/2 + y^3/3! + y^4/4! +...
plug in y=-x^2
e^(-x^2) = 1 - x^2 + x^4/2 - x^6/3! + y^8/4! -+...
so f(x) = (1/sqrt(2pi) * (1 - x^2 + x^4/2 - x^6/3! + y^8/4! -+...)
so F(x) = (1/sqrt(2pi)) \* (x - x^3/3 + x^5/10 - x^7/(7\*3!) + x^9/(9\*4!) -+...)

2018-02-20 02:33:10 UTC

Does anybody have an idea for the power series from the given Taylor series?

2018-02-20 05:38:33 UTC

@JC17-OR do you mean the radius of convergence?

2018-02-20 05:39:15 UTC

because the taylor series *is* the power series

2018-02-20 05:42:21 UTC

Anyway I forgot to mention the radius of convergence is infinity, because f(x) is a probability density function, so the integral of f(x) for x from -infinity to infinity is 1.

2018-02-20 15:13:46 UTC

I'm dumb that's what I meant to say. I figured it out, thanks for all your help.

2018-02-20 16:18:30 UTC

@JC17-OR You're welcome!

2018-03-05 22:38:10 UTC

does anyone know anything about lognormal and weibull distributions?

2018-03-05 23:50:38 UTC

<@&387091385075105804> ^^^

2018-03-25 21:04:05 UTC

Need some help with a math problem @here

2018-03-25 21:05:55 UTC

I have to solve a linear inequality problem:
A delivery driver makes $52 each day that she works and makes approx. $8 in tips for each delivery. If she wants to make $220 in one day at least how many deliveries does she need to make?

2018-03-25 21:10:11 UTC

Isn't that just 220 = 52 + 8x

2018-03-25 21:10:16 UTC

Is the $52 a base pay?

2018-03-25 21:10:34 UTC

If so @Jacob is correct

2018-03-25 21:10:55 UTC

Is is not (220 - 52) \ 8 = x

2018-03-25 21:11:54 UTC

Oh jacob beat me to it. Jacob wrote the more proper expression tbh.

2018-03-25 21:12:23 UTC

Do you solve for x or just leave it as that expression?

2018-03-25 21:12:42 UTC

Solve for x

2018-03-25 21:12:46 UTC

You solve for X but he got you started.

2018-03-25 21:13:40 UTC

Since you get "approximately 8 dollars per tip' the answer will be "about" (whatever x is ) deliveries

2018-03-25 21:14:11 UTC

Okay that makes sense.

2018-03-25 21:14:25 UTC

Thanks. Your goy here can't do maths to save himself

2018-03-25 21:15:43 UTC

Everyone has strengths and weaknesses. This one's pretty basic though. I used Kahn Academy alot in college when I had a foreign teacher who didn't explain things in an articulate manner.

2018-03-25 21:17:33 UTC

I'm in a learning support math class since my ACT score wasn't high enough to be eligible for me to enroll in the primary math course required for my major.

2018-03-25 21:18:02 UTC

So I have to take this class and then college algebra class and then hopefully I'm done

2018-03-25 22:00:06 UTC

Kahn's really good if you prefer to learn with videos

2018-03-27 02:38:38 UTC

52(base pay) + 8x(tips per delivery >or= to 220

8x >or= 168

x >or= 168/8 = 21 deliveries

2018-03-27 02:38:47 UTC

At least 21 deliveries in a day

2018-03-31 00:15:09 UTC

Nice try Schlomo

2018-03-31 00:18:21 UTC
2018-03-31 00:18:57 UTC

Making women deliver stuff...sad

2018-03-31 00:21:58 UTC

21 deliveries

2018-03-31 00:22:47 UTC

She must live in Texas where tipped pay is $.38/hr or something

Anyone who has taken a class in Differential Equations, could you confirm if the answer in green makes sense?

This section is on series solutions for linear equations

2018-04-01 23:55:34 UTC

@ButMomShesA300YearOldLoliVampire yes the way you solved it up to the green circle is correct. Now the question asks for you to find two linearly independent solutions. In the green circle you see that after you specify `C_0` and `C_1` that all the other coefficients of a solution are determined. So for one solution choose `C_0 = 1` and `C_1 = 0`, and for the other solution choose `C_0 = 0` and `C_1 = 1`. These solutions are linearly independent since no scalar multiple times the `C_0` and `C_1` of one solution will ever give you the `C_0` and `C_1` of the other solution.

@ThisIsChris Thanks a ton!

2018-04-02 01:00:24 UTC
2018-04-15 18:07:21 UTC

@Warren H Better to just post your question.

2018-04-15 18:08:44 UTC

Working on graphing linear equations in two variables (x and y).

2018-04-15 18:09:06 UTC

And the line I have to graph is 5y=9

2018-04-15 18:09:53 UTC

I put it in a graphing calculator and came back with a straight line (0,0) which is incorrect as the problem is asking for two coordinates for x and y

2018-04-15 18:41:28 UTC

If theres no x in the equation it will be a straight line. Y = 9/5

2018-04-15 18:41:32 UTC
2018-04-15 18:52:58 UTC

@Warren H To add to @Deleted User 's response, you can rewrite `y = 9/5` as `y = 0x + 9/5`. Remember line formula is `y = (slope of line)x + (y-intercept)`. So for @Deleted User 's formula you have a slope of zero (i.e. a flat line) and a y-intercept of 9/5.

2018-04-15 18:55:39 UTC

So the answer I came back with is 0, 1.8

2018-04-15 18:56:28 UTC

But the computer program I have to do my homework on requires me to answer the x coordinate and it will not accept 0. Very weird

2018-04-15 18:57:37 UTC
2018-04-15 18:59:06 UTC

@Warren H hmm, how exactly is the question phrased? Do you have a screenshot?

2018-04-15 19:00:04 UTC


2018-04-15 19:00:10 UTC


2018-04-15 19:01:18 UTC

Oh you need to enter something for B as well, any other point on the line will do. (They say enter two points because two points determine a straight line). You can enter any other point from the line, for example (1, 1.8)

2018-04-15 19:03:31 UTC

Ohhh okay. That seemed to have worked. Is this the case whenever there is a straight line?

2018-04-15 19:04:39 UTC
2018-04-15 19:09:06 UTC

This program drives me nuts

2018-04-15 19:10:15 UTC

I just got another answer wrong for writing it in decimal numbers but it was counted as wrong because the answer was in fractions. Did the math calculation, and the fractions converted into the decimal coordinates that I entered.

2018-04-15 19:11:00 UTC

Do you have a screenshot? I wonder if there's something specific in their question phrasing that indicates they want fractions instead of decimals.

2018-04-15 19:11:45 UTC

It did not. It just said "Find the y-intercept and x-intercept of the following linear equation."

2018-04-15 19:20:29 UTC

That's so weird, so for the y-intercept, they rejected 7.5 as the y-intercept? That's so weird because *they* give you the equation in decimal!

2018-04-15 19:21:36 UTC

oh woops sorry that was the next problem

2018-04-15 19:22:06 UTC

the one they flagged wrong was the coordinate points -4.8 and -0.375

2018-04-15 19:22:57 UTC

they said those were incorrect and that the right answer was -24/5 and -3/8 which are the exact same numbers

2018-04-15 19:31:29 UTC

@Warren H do you get points off for that? might want to bring it up with your professor in that case

2018-04-15 19:40:54 UTC

Yes I did. I will for sure. If this was on a test and graded in that way I would have gotten the problem wrong

2018-04-20 03:18:33 UTC

Hi. New to the server. If anyone needs help with any kind of research, I'm your goy. I have a lot of experience in it and I even enjoy it oddly enough. This extends out to school essays, work related, or even anything out of general curiosity. Any subject as long as I don't need a degree to grasp the basic concept. I can write you(within reason and with digression) any paper/article, and other kinds of research assignments. I also excel at photo shop. Advice and suggestions are free. Real work is cheap. DM me if you are interested.

2018-05-07 19:04:50 UTC

Does anyone have any protips or suggestions on how to cultivate a better habit of doing homework/getting schoolwork done outside of class? All through normal school I was in the category of kids who didn't need to study and could get through homework during school hours without much difficulty, but now that I'm in college my grades are suffering because I don't have the habit/mindset of doing homework/studying outside of class. Anybody have experience with overcoming this?

2018-05-07 19:12:49 UTC

@Gaius Mucius Scaevola Wake up early. 5:30-6. Go for a run. Then block 1-2 hours for homework. If it isn't done first thing, there won't be motivation left at the end of the day.

2018-05-07 19:13:24 UTC

wake up, go for a run/exercise, breakfast, homework

2018-05-07 19:13:35 UTC

I think I can do that to catch up on all the work i'm behind on this semester

2018-05-07 19:13:46 UTC

I'm not really a classroom/lecture learner, I learn by doing which is why i went to trade school

2018-05-07 19:13:54 UTC

all the lab/trade classes I do much better at

2018-05-07 19:14:00 UTC

it's the classes with lectures and homework i struggle in

2018-05-09 00:52:31 UTC

has anyone read "Nations and Nationalism" by Ernest Gellner

2018-05-09 00:55:32 UTC

Not all of it, but some. @johnnyc

2018-05-09 00:55:42 UTC


2018-05-09 00:55:56 UTC

gotta do a book review on it

2018-05-09 00:57:22 UTC

ive read a good amount but i dont have time to finish and was struggling to figure out what i should write

2018-05-09 01:01:30 UTC

How about a defense or refutation of the main idea. Which, I believe, is something along the lines of 'nationalism is a bureaucratically enforced method of creating a homogeneous population through state or industry created organizations.'

2018-05-09 01:02:14 UTC

Nationalism, as being in opposition to localism or tribalism.

2018-05-09 01:04:37 UTC

Well, not exactly in opposition. As the 'group' becomes a larger entity, it becomes more difficult to maintain a truly homogeneous culture. Ergo, it becomes important for state-created organizations to synthesize naturally-formed local cultures to form a 'baseline median.'

2018-05-09 01:05:30 UTC

It's like how 'Germany' is really a combination of more local groups from Prussia, Swabia, Bavaria, ect.

2018-05-09 01:07:02 UTC

gotcha, yeah the main things in the paper are supposed to be identifying the main argument/s and evaluating its persuasiveness

2018-05-09 01:09:04 UTC

i was having some trouble narrowing down what the actual main argument was

2018-05-09 01:09:42 UTC

"nationalism is an inescapable consequence of modernity" i think is some of it

2018-05-09 01:12:00 UTC

idk whether to write about that or maybe include his definition of nationalism as wellmaybe

2018-05-09 01:13:22 UTC

Yes. That's exactly right. But it must be noted that he defines nationalism as to mean the combination of local groups to form a median. You should include both points because they support each other.

2018-05-09 01:14:11 UTC

Because by 'modernity' he means the breakup of agricultural society in favor of industrialization.

2018-05-09 01:14:22 UTC

One is just the outflow of the other.

2018-05-09 01:15:03 UTC

okay nice that helps clear it up thank you!

2018-05-09 01:16:18 UTC

Although, as a counter-argument, you could make the claim that it isn't *really* industrialization that is the main cause.

2018-05-09 01:16:53 UTC

*cause of nationalism

2018-05-09 01:18:24 UTC

true i was thinking that aswell

2018-05-09 01:18:53 UTC

Interesting. What example are you going to use?

2018-05-09 01:19:28 UTC

im not sure yet, kind of just gathering my thoughts and re-reading some parts right now

2018-05-09 01:20:01 UTC

Ok! Good luck.

2018-05-09 01:20:40 UTC

thank you!

2018-09-01 00:16:51 UTC

Is anybody in here a Calculus wiz?

2018-09-01 03:42:33 UTC

@GDoctor taught it for many years, I can probably help

2018-09-01 03:42:43 UTC

What are you looking at?

2018-09-01 22:08:58 UTC

@ThisIsChris I'm In calculus 1 right now and there are no prerequisites however, it assumes a high school background in pre-calculus. The problem is that high school was over 10 years ago for me and I didn't do well in it. I'm going to post a scan of my latest homework and would like to know how to solve the problems in layman's terms. The scientific calculator I have is a TI-84 Plus.

2018-09-01 22:11:02 UTC

Here's my current homework. It's due September 5th.


2018-09-01 23:10:46 UTC

@GDoctor here is 1a and 1b


2018-09-03 00:25:01 UTC

@ThisIsChris Thank you very much! I'm signed up for tutoring at my school so hopefully I'll catch up and remember how to do this stuff in my head. Tests account for 85% of my final grade.

2018-09-28 20:08:07 UTC

<@&435155896780324864> Can someone tell me why I'm getting a null pointer exception in Java?

2018-09-28 20:08:34 UTC


2018-09-28 20:09:01 UTC

how do you paste code?

2018-09-28 20:09:26 UTC

import java.lang.*;

2018-09-28 20:09:48 UTC


2018-09-28 20:10:18 UTC

public boolean contains(Object o) {
for (int i = 0; i < size; i++) {
if (o == null && get(i).data == null) {
return true;
else if (get(i).data.equals(o)) {
return true;
return false;

2018-09-28 20:10:38 UTC

public ListNode get(int index) throws IndexOutOfBoundsException{
ListNode cur = head;
for (int i = 0; i < index; i++) {
if (i == index) {
return get(i);
cur = cur.next;
return null;

2018-09-28 20:10:59 UTC

pls no bully I haven't taken Java in two years and now I have to relearn everything

2018-09-28 20:11:21 UTC


2018-09-28 20:11:46 UTC

make the first && an ||

2018-09-28 20:12:45 UTC

but I'm checking to see if they're both null

2018-09-28 20:13:03 UTC

but the elseif

2018-09-28 20:13:15 UTC

o could be null

2018-09-28 20:13:17 UTC

// Returns true if this list contains the specified element o.
// More formally, returns true if and only if this list contains at least one element e
// such that (o==null ? e==null : o.equals(e)).
// Note: you have to handle the case where a list node stores null data element.

2018-09-28 20:14:06 UTC

if o is not null you will move to the else if

2018-09-28 20:14:14 UTC

and get(i).data could be null

2018-09-28 20:14:28 UTC

do this

2018-09-28 20:15:48 UTC

Object.equals(get(i).data, o)

2018-09-28 20:15:51 UTC

in the else if

2018-09-28 20:16:03 UTC

handles nulls

2018-09-28 20:17:26 UTC

says that the method is not applicable for arguments

2018-09-28 20:17:28 UTC


2018-09-28 20:17:31 UTC


2018-09-28 20:17:33 UTC

not Object

2018-09-28 20:18:36 UTC

I still get a null pointer exception from the if statement

2018-09-28 20:19:16 UTC

this is what is being tested btw

2018-09-28 20:19:22 UTC

public static void testContains() { //passed test

2018-09-28 20:19:34 UTC

that is from the tester class, not the same class

2018-09-28 20:21:34 UTC

break when cur is null

2018-09-28 20:21:53 UTC

it shouldn't break though

2018-09-28 20:22:05 UTC

it should theoretically be able to find objects with data set to null

2018-09-28 20:22:39 UTC


2018-09-28 20:22:48 UTC

cur is never null?

2018-09-28 20:23:02 UTC


753 total messages. Viewing 250 per page.
Prev | Page 2/4 | Next