Message from @Sam Southern - TN

Discord ID: 410259716963303425


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  

so
`powers = 1:b`

2018-02-05 23:18:38 UTC  

then

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  

https://cdn.discordapp.com/attachments/387060078433271808/410230981501386764/Screen_Shot_2018-02-05_at_7.30.58_PM.png

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  

<@&387091385075105804>

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  

https://cdn.discordapp.com/attachments/387060078433271808/413176367312535553/Screen_Shot_2018-02-13_at_10.34.53_PM.png

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  

https://cdn.discordapp.com/attachments/387060078433271808/413177276696363009/image.jpg

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