I thought I'd start out by asking if anyone has any questions or anything you want to discuss before we move on. Everybody got the homework done? I hope not. You haven't even seen it yet. Okay, so today we're going to start out with an introduction to one of the most useful things that you'll learn how to do using Mathematica, and that is to make nice plots. Right? So we all know as scientists that cleverly plotting data is a very nice way to convey a message. And the message is best conveyed when you have a very meaningful and informative plot. And so what I'm going to do today is introduce you to some, a few features that will help you to begin to make nice looking X, Y plots. So plots of, functions of one variable. And then a little later in the course we'll learn how to make 3D and even 4D plots. And like I said, I think this is one of the more valuable things that you'll learn how to do. All right, so we're going to start with a very simple example. And what I'm going to do is show you how to plot a simple function. So it's going to be the sine function. And we're going to do it over one cycle. So it'll be from 0 to 2 pi. All right? And the name of the command is called plot. This is the very simple plotting command for plotting a function, either one that exists in Mathematica or one that you've defined and we'll learn a little later today how to define our own functions. And in its simplest form, all you do is you say, what's the function you want to plot? So in our case it's going to be sine x and don't forget that arguments to functions go in square brackets.  And by the way, the variable doesn't have to be x. This is just a very common one to use. It could be y, it could be t, it could be a, it could be your name just so long as you're consistent in referring to it. All right? So then I put a comma and then I put a range and this is going to be our first introduction to the use of the curly braces and as I think I previewed to you last time, there are lots of different ways to use parentheses, braces, and square brackets in Mathematica. And braces are generally used to enclose lists. And in this case we need to make a list of what's the variable, so we've said sine x so we should put x and then we put the minimum and maximum value over which we want x to be plotted. So I'm going to go from 0 to 2 times pi. Remember pi is capital P, lower case i. All right? And then I close my square brackets and I enter. And if you did it right, congratulations because you have your first plot in Mathematica. And so let me start by saying just a couple of things about it. So first of all, there is, unless you specify otherwise, a fixed dimension to the plot. Okay? So there's a Mathematica decides to use a certain amount of real estate in the vertical direction and then it by default uses about 1.6 times that in the x dimension so you get this rectangular plot. And if you wish, you're certainly free to change this and many other attributes of the plot. And I'll show you a few and also show you how you can use documentation to unravel and uncover a universe of possibilities for customizing your plot. Now the next thing is that notice that this sine wave fits very nicely within the plotting frame. In general, Mathematica is going to try to fill as much of the plot as possible and so it's going to adjust the limits in y, so in this case from minus 1 to 1, that happens to be the limits of the function, and x so as to use as much of the plotting frame as possible. Now this isn't necessarily what you want and as we'll see, you can change that too. Okay? And then the third thing that I'll mention here is that Mathematica has, when you first fire it up, a default coloring scheme that it uses. And according to that default coloring scheme, the first curve when you're plotting plots in a given plot frame is going to come out blue. Once again, this is something you can change and I'll show you a couple of ways that you can do that. All right? And then if you plot another curve, which we'll do in just a second, it will come out in a different color. Okay? So that's kind of useful to know if you're plotting multiple plots. All right. So this is a very simple plot and you can see that the command for it is also very simple. Okay, so what can we do now? Well, this is a good time for me to emphasize something that you should start thinking about all the time, which is as soon as you do anything significant as you're working, you should save your file. All right? So if you haven't already seen how to do that, let's go ahead and do it now. All right? So what we're going to do is uncover the menu here and then I'm going to say File, Save As and if I click on local disk, there's a folder called Save Here. Okay? So on these lab computers, you're allowed to save files in that directory. All right? So let's go ahead and click on that and then you can put in a name. All right? So yesterday I saved a file called dug1.nb. Today I'll call it dug2.nb. You can call it whatever you want. Okay? Now, another very important thing to keep in mind is that this file may not live very long after you leave the class. Okay? In principle, they wipe these disks, all these Save Here directories automatically every 24 to 48 hours. So the next thing you should do, especially when you're working on your homework and double especially when you're working on your exams, is to save a backup copy. Okay? So all of you have probably been using computers for some time now and I would bet that most of you have some tales of woe about how you've worked for hours on some precious document right near the deadline and the computer crashed or the program crashed and you lost everything and you cried and you were really stressed out about it. So what I recommend that you do to avoid that stress is to get into the very, very good habit of making backups. Now in this course I can recommend say three that are very easy and take a very small amount of time. One is just immediately email a copy to yourself. Another is create a drop box on your EEE that you have waiting for you and upload a copy of your file to your say Chem 5 miscellaneous drop box. And another thing you can do is you can have a thumb drive at the ready in the computer and move a copy over to your thumb drive every now and then to create a backup. In this class, losing your data because of a computer crash is kind of like turning in a paper late because you're dogged it. It's not an acceptable excuse. Okay? So I've given you three good ways to backup your data and I will assume from now on that you'll be doing so. All right? Okay. Now back to our plot. So the next thing we're going to see how to do is how to plot two functions at the same time. Okay. So the way you do that is you make a list of the functions that you wished to plot. And so a list is enclosed in curly brackets. So I'm going to put some curly brackets around this. And then I'm going to add the second function which in this case is going to be cosine, cos of x. And now if I press enter, you see that I have two curves. Now, how do you know which is which? Well, first of all, you should know the difference between cosine and sine, but if you didn't, you could infer it because as I said, mathematics always draws the first one with the blue. And now you can see that by default, it draws the second one as purple. Okay? All right. So there's an introduction to plotting more than one function. Now I want to show you another way to plot something. So this will be, if you like, an arbitrary function of your choosing. And then we'll see how we can manipulate some of the attributes of the plot because this plot is not extremely informative, right? It doesn't have any axes labels. It doesn't have any units. It doesn't have a title. It doesn't have a legend. And unless you knew that the blue curve was first and the purple curve was second, you may not know which is which. So we'll have a quick look at a few of the various ways that you can customize your plot to make it much more informative. Now, before I do that, though, I want to just introduce you to the documentation center in Mathematica. This is an extremely useful resource. You may not use it too much in this class because, as I said, I'm going to show you how to do everything that you need to know in this class. But in future, you may want to look up how to do things. Or even in this class, you may want to look up how to do some snazzy things that I'm not going to teach you just because there's not enough time. Okay? So what you do is you go under the help menu and then if you want, you can search for anything you want. Okay? So suppose you were interested in finding out more about the plot command, the various options that you may have. Just type in plot, hit return, and notice that the first thing to come up here is documentation on the plot command. But you also can take a tutorial if you want. This is often available. And there are additional guides like general algorithms for data visualization, et cetera, et cetera. So let's go ahead and click on this. And you see that you get, first of all, a very, very basic introduction to the syntax of the command. And then there's this box that says more information. And usually, the useful stuff is in that box. And so now, if you look at this list of things, these are all lists of options that you have for changing the attributes of your plot. And it looks pretty intimidating, but most of the time, you won't care about most of those things. I'm going to show you a few of these. But I just want to let you know that this exists because you may be curious and want to waste some time making your plot look really super cool. Okay. Now, another thing that's occasionally fun to look at is the examples. All right? So these just generally show some very simple things. It's by no means exhaustive. And then down at the bottom, they usually have something called neat examples. So this one's particularly cool because it's actually a chemistry example. And this may not look familiar to you, but as soon as you take Chem 131A, you'll know exactly what this is. This happens to be a very nice representation of the first 1, 2, 3, 4, 5, 6, 7, 8 wave functions, or I guess those are the probability amplitudes for the harmonic oscillator, which is a simple model for molecular vibrations. Has anybody heard of that before? Aha. Are you in Chem 131A or took it already? No? Okay. Cool. All right. Well, you'll get a massive coverage and introduction to that in Chem 131A. Those of you who are in that course will be getting this probably within a couple of weeks from now. All right. But anyway, you can see that if you really wanted, you could make such a beautiful plot yourself in Mathematica, and it's not that complicated. Okay. So that's the documentation center, and I encourage you to consult it from time to time. Like I say, for the most part, though, you won't need it in this course. All right. So next thing we're going to do is we're going to plot a function that we define ourselves in the plot command itself, and then we'll manipulate it. Okay? So here what I'm going to do is I'm going to say plot, and then instead of typing in a predefined function like sine or cosine, I'm going to plot an equation for a parabola. So it's going to be 2 times x minus 4, quantity squared, and then plus 1. Okay? And I'm going to plot this between x equals 3 and x equals 5. Okay? Now, what should this look like? Well, it's a parabola that's going to be displaced along the x-axis by 4 and along the y-axis by 1. All right? So let's go ahead and let it rip, and there you have it. And as before, Mathematica chooses the limits while we chose the limits of x, but chooses the limits of y so as to fill up as much of the frame as possible with the graph. And you can see that it's chosen to use the lower y-limit as 1. All right? So there's your parabola. Now, what if you wanted to represent this in a different way? So suppose you're teaching someone how to interpret the equation of a parabola. You might want to plot it in such a way that you can easily see that it is in fact displaced by 4 and x and by 1 and y. In other words, you may want to plot it so that the origin of the plot, which here was chosen for us, happens to be 3 and x and 1 and y, is at 0 and 0. So you can really see that it's displaced from the origin. Well, that's something that's easy to change, and this will be our first introduction to a long list of potential plotting options, okay? And it's also an introduction to a new piece of syntax. So if you want to change the origin or specify the origin, you use an option called axes, so it's capital A, and then origin with the capital O. And then what you do is you use an arrow construction to point to where you want the origin to be. And the way you make an arrow is you make a hyphen and then a greater than, and then you put the coordinates that you want the origin to be at, all right? So I'm going to do 0, 0, and I put those in curly braces, all right? And now, if I enter that, notice that it's drawn the same curve, but now the origin of the plot is where I told it, 0, 0. And now we can see very clearly by looking at the plot that it's displaced, the minimum is displaced by 4 and x and 1 and y, okay? So it's exactly the same data, but it's plotted in such a way as to convey a new point, all right? It's a very simple example of a manipulation that you may want to do from time to time to make your plot convey the message that you wish to convey. Okay. Now, one more comment. We're going to be learning more and more of these options, and you might be thinking, man, this is super confusing. I don't remember when to use curly braces, when to use arrows, what the words are that I'm supposed to be using to do this or the that. Don't worry about that, because the best way to make complicated constructions in Mathematica is to look at an example and then modify that example to do what you want to do. And as I already emphasized last time, anytime you're doing anything in this class, you will always have available to you the notes from the class, and everything that I'm going to ask you to do, there will be an example of that in the notes, okay? So don't get bogged down memorizing all the syntax, all right? So another thing that you can do, so here we've changed the origin, okay? Another thing that we may want to do is we might want to actually manipulate the range over which the function is plotted, okay? So here, Mathematica chose to plot it between 0 and 3, and since we didn't specify the range of X, it uses the full range that we specify, which was 3 to 5, plus if there's an origin, it also includes whatever's between that and the origin, okay? So to customize the plot range, what you can do, so let's go ahead and mouse this in here. So control C to copy, and then control V to paste. So there's another option, which is called plot range. So plot, and then capital R-A-N-G-E, and here what we need to do is include two ranges, one for X and one for Y. So suppose in X I want to go between 1 and 10, all right? So that's the X range. Now I have to include another set of curly brackets, and then put a comma and specify the range of Y. So Y, I may wish to make, let's say, just for fun, 0.525, okay? So if we enter, whoops, I need another curly bracket here, then I get this plot, okay? So there's no particularly compelling reason why I chose that range other than just to show you that you can change it. And as you see, the plot goes between 1 and 10 and 0.5 and 5, as we told it, okay? All right, what else can we do? Well, I'm going to start by going back to our very simple plot. I'm just going to nuke all this stuff here and re-enter. All right, so so far all the plots we've made are pretty lame, actually, because we don't know what we're plotting, all right? So how can we specify what we're plotting? Well, one thing we can do is we can label the axes, okay? Another thing we can do is we can actually give the plot a name or a title, a label, okay? So now I'll show you how to do that. So these are additional options, and the first one to label the axes is called axes label, and then we need an arrow. And then we need to make a list of two names, one for the each axis. And these should be in quotes, because they're going to be written exactly as whatever you put in the quotes. So in the first set of quotes for the x-axis I'm going to call it x. And for the second axis, y, I'll call it y. Now, if you enter that, you see that you have a microscopic label over here for x and another microscopic label here for y. And I'll show you in a moment how you can change the sizes and fonts and things like that. Okay, now what about the label? Well, we can put in another option. It's called, ironically enough, plot label, arrow, and then in quotes you put in whatever you want. So you can say this is a cool plot or whatever you want to say about it. You might want to say this is not a cool plot. Okay, and if you enter that, now you see that you have axes labels and a plot label. Now, as you can see, I wear reading glasses. So for me, these microscopic axes labels are very hard to see without putting my glasses on. So if I want to be able to read my plot without my glasses, I need to make those bigger. So I'll show you how to do that. In addition, I don't know about you, but I'm not a big fan of the times font, which is the default font that you get when you make plots. I actually like the sans serif faults like Helvetica. You want to change that? No problem. Here's how to do it. All right, so more options, which we just tack on to the end. Now, the syntax for changing these things looks pretty intimidating, but like I say, don't worry about it. You can look at the notes, for examples. So these attributes, things like the font face, the font size, these are what's part of a broad array of attributes called base style, okay? So the way we change them is we say base, style, arrow, and then we have some curly brackets because we're going to make a list of things that we want to modify, all right? So the first is what's called font family, and I'm going to put it, whoops, I spelled it wrong, font family, and then I put in an arrow, and then I'm going to change it to one of my favorites, Helvetica, okay? And then the other option I'm going to put in is the font size, arrow, and I'm going to crank it up to 16, 16 points. I think the default is 10, all right? And I got an error. I forgot the curly bracket before the 16, where? Here? I don't need a curly bracket there. I have a curly bracket here that includes both of the base style options, and well, we could see what it has to say here. So, you know, this is going to happen a lot, right? And it's good for you to see how to fix things. Oh, you know how to fix it? Oh, yeah, I don't need quotation on the numbers. That's right, thank you. All right, let's see if that works. Okay, there you have it. All right. So now you can see we have the Helvetica font and you can read it. The axes, labels are bigger too. Okay? So as time goes on, you know, you're going to learn how to make more and more modifications to your plots. In the homework, I'll often give you very specific instructions about what I want you to do. And so you should always do that.  You'll impress your TAs when they're grading. So the minimum requirement is include all the elements that I tell you to, but after that, the sky's the limit as long as you don't, you know, modify the information content of the plot. Okay? All right. Now, let's do some other things that are very important if we want to make scientifically meaningful plots. Okay? So now I'm going to go back to our previous example of the sine and cosine. All right?  And we'll go ahead and enter that to remind ourselves what that looks like. So here we have our two curves. All right? And what I want to do is I want to play around with the curves so in various ways so as to make them distinguishable, more distinguishable. Okay? And also while I'm at it, I'll show you how to make plots in black and white or grayscale. This is sometimes nice because if you have, say, a black and white printer, if you were to plot these two curves, they'd probably be really hard to tell apart. So you may want to make your curves in black and white and then use other attributes like line thickness or dots and dashes and things like that to make the plots look different. Okay? So we'll do that first. All right? So now what we're going to do is we're going to make both of these curves black. All right? And this can be accomplished by using an option called plot style. Okay? And I'm going to put some cur, whoops, it has to have an arrow and then some curly brackets. And then for each of my plots, I'm going to specify some attributes inside plot style. Okay? So one of those can turn these plots into what are called grayscale. All right? So let's do that. So for the first plot, I'm going to say gray level and I'll explain to you how this works in just a second. Bracket zero. So that's an option for the first plot. And then if I put a comma, then I can specify an option for the second plot. And I'm going to make it the same. And if I enter that, you see that I converted both of these plots to black. So gray level is the number between zero and one. Zero is black, one is white. Okay? So if I wanted to make one of these plots gray so as to make it distinguishable from the other one, so for example, the second one, I could change this number to say 0.5. If I do that, then you see that the cosine curve actually comes out gray. But still, that's not a very impressive difference. So what I'm going to do instead is I'm going to go ahead and keep this one black, except now I'm going to add an additional option for the second curve that will turn it into a dashed line. Okay? So if I'm going to add an additional option, I have to put in another set of curly brackets so that I can make a list of options for the second plot within those. Okay? And to make a dashed line, all I have to do is say dashed. Okay? And if I enter that, I see that it didn't do it. And one problem is I have this curly bracket in the wrong place. Okay. So there you have it. All right? So that's kind of nice. And, you know, I'm not going to go into all the things that you can change, but if you look in the documentation, there are many other options besides dashed. And you can also change the size of the dashes for each curve. You may want to make several curves with different size dashes so as to distinguish them. Okay? So we have a question. I'm sorry, I can't hear you. Well, to change back to blue and red, you just remove all the stuff that we did to change it away from blue and red. Okay? So here, I'll show you how. So we mouse this back in and if we could just go down here and remove all this stuff that we changed, we'll go back to the default. Okay? All right. So it may not be obvious to you why you might want to do this. I guess the most straightforward example is you may have a black and white printer and you want to make a meaningful plot. Another is this maybe isn't so relevant to you at this stage of your life, but when you publish stuff in journals, sometimes the publishers will charge you a lot of money to get your figures plotted in color. And so whenever you can make plots in black and white, you tend to do so to save money. And because we have things like dashes and as I'll show you in a minute, line thicknesses, things that we can change, we can still make perfectly beautiful, meaningful plots without using color at all. Nowadays, color printers and color toners are pretty cheap, but when I first started, my education, color was very hard to come by and when you could come by it, it was very expensive. Okay. All right. What else can we do here? Well, we can change the thickness of the lines. All right? So what I'll do is I'll change the thickness of the first curve. So I'm going to put in curly brackets around this guy and then there's a command or an option called thickness and there's a number that goes inside and this number happens to be the fraction of the plot width. Okay? So if I put in 0.01, what that's going to do is it's going to draw the first curve in solid and the thickness of the line will be 1% of the width of the plot. Okay?  Okay? So these are just a couple or a few of the various ways that you can manipulate your plots to make them contain more information. Now, the next thing I'm going to show you is, well, actually I'll show you a couple of things. The next thing I'll show you is how you can make the plot frame look a little bit different. This sometimes is preferable. Some people like to have a frame that goes completely around the plot. Okay?  The default is to not put one, right? Here we've got just the two axes. If I put in an option here that says frame arrow true, it'll draw a plot frame. Notice the difference? You may want to do it. You may not. If you do, this is how you do it. Now, one little idiosyncrasy about having the plot frame is that the way you label the axes is different. I didn't invent this, so don't blame me. But I'll show you how to label the axes. So remember when we had the regular plot that doesn't have the frame, we labeled the axes by saying axes label. Here, if we have a plot frame, that doesn't do anything. What we have to do is say frame label. Okay? So let's try that. So we say arrow, and then after that it's just like before we put in the labels we want. So I'll just say x and y. All right? If you do that, notice it puts the labels at the middle of the axes, which is aesthetically pleasing to some. And suppose you want to label the plot. It's the same command as before. It's called plot label. So maybe you want to say my favorite trig functions. All right. Now, the next thing is, again, so far we've done a very nice job of distinguishing our two plots. But if we hadn't taken trigonometry class yet, we wouldn't know which one of those is which. So what we want to do now is we want to include some labels that tell us which curve is which. Okay? And one convenient way of doing that is by using what's called a plot legend. Okay? So what a plot legend is is it basically a little sample of each curve and next to each sample you have some name that you give it that tells you something about what you're actually seeing here. So for example, I might want to label this one sine of x and this one cosine of x. All right? Now, plot legends for some reason, the geniuses at Wolfram Research decided is not something that you're going to want to do all the time. And the way Mathematica is written, it's actually a very, very big and complex program. And if you try to load all of its capabilities at once into memory, you'd be using up a lot more memory than you really need to to do most things. Well, to do pretty much anything you want to do. So what they've decided to do is to load in, when you fire up the program, you load in a small number of what are called packages that you're likely to use a lot. And then there's additional capabilities that you use less frequently that are available, but they have to be loaded, okay? And it happens, turns out that plot legends are one of those things. So if we want to include legends in our plot, we actually have to load what's called the plot legends package, okay? So the first thing I want to do is just to show you how it is that you can see what's already loaded. So if you type dollar and then packages, and enter that, you get a list, all right? And this list probably doesn't mean a whole lot to you and it certainly doesn't mean a whole lot to me. These just happen to be the names of the packages that are loaded by default when you fire up Mathematica. Okay? So one of this, this one looks kind of familiar. That's the searching program. All right. Now, if we want to load a package, it's got a funny syntax, but again, you always have examples to look at. We do the following. We say less than, less than, and then we say the name of the package, so in this case, it's going to be plot legends, capital L, and then you put a backward single quote, which is the upper left-hand corner of your keyboard. All right? And now you enter that. Now, if you type dollar packages again with a capital P and no A, then you see you have an additional one that you didn't have before, which is called plot legends. And now you can actually use commands that are required in order to install a plot legend. So let's go ahead and mouse this guy in here and put it down here and enter it. Okay? And now what we're going to do is we're going to label these two curves with a plot legend. Okay? Now, the way you do that is you add an option, and by the way, this option will not be available to you until you load the plot legends package where you say plot legends, plot legend, arrow, and then you have a list, in our case it's going to be two items because we have two curves, a list of the names that you want to give to each curve. Okay? So for the first one, I'm going to call it sign of X and that should be in double quotes, sorry. And the second one will be cosine of X. Ah, my quote here, I don't have a closing quote here. Okay? There it is. All right. By now, you've probably already noticed that if there's anything wrong with your command, like missing brackets and things that you get these color coded alarm bells going off, so they kind of help you to figure out what you're missing. All right. So let's try that. There you go. So here is a plot legend that tells us that the blue curve is sine and the purple curve is cosine. This is very, very useful, right, for making a meaningful plot. Now, what's not so nice is that by default this thing is placed so that its center is at the lower left-hand side of your plotting frame, which is in many cases not a very pleasing place to put it. So we'll see how to move it in just a second. Another thing that I don't like about this default legend is that they have this shadow, which later on we'll learn how to nuke that, and also you can, we'll learn how to change spacing between these guys and you can get rid of this frame if you want. So there's lots of things you can do, but for right now I just want you to see how to put it there and then move it someplace so that it's out of the way. All right. So now if we want to move it, what we do is we put in another option, which is called legend position, except we have to spell it right, arrow, and then we put in coordinates. So we have to put in x and a y in. And what these coordinates are is they're coordinates in fractions of the plotting frame, all right? So if I want to move this guy all the way off to the right so that it's not sitting on top of my plot, I should put a number greater than 1.  So let's try 1.1 and then I'll put in minus 0.3. So that's going to be the y, where it is in the y. And if you enter that, you see that now your legend is in a much nicer place where it's not sitting on top of your plot, okay? Why am I playing around with 3 more than 6 here? No, because these coordinates are in units of the dimension of the plot. So what 1.1 means is it's 0.1 beyond the edge of this in terms of the width of the plot, okay? Yeah. But usually when you're dinking around with these things, you kind of play with the numbers until you get something that you like. So I just so happen to like this because this is roughly centered on y and it happens to be off the edge of the plot. Change the numbers, see what happens. By the way, that's something I should encourage you all to do while we're sitting here dinking around. You don't have to do exactly what I do. If you're curious to see how something works, play around with the things. The worst thing that can happen is it won't work, okay? All right, any other questions? Okay, so this is all I'm going to say for now about plotting, okay? This will be enough to do a good job on your homework. And as time goes on, we'll see new ways of making plots and we'll get more and more sophisticated. But already right now, you can make really cool plots. And hopefully you're all very happy with yourselves. Okay, now we have a couple of other things that we need to do in order to be able to do the homework. And these are things that we're going to use a lot. So if you have any questions whatsoever in the next 10 minutes or so, please make sure we get them answered. Okay, so the next thing we're going to do is we're going to learn how to assign variables, okay? So let's see how to do that. So the assignment of a variable works the following way. Name of your choice equals something of your choice that you wish to associate with that name. I mean, it's kind of like algebra, right? And then once you've assigned a variable, you can use it subsequently. And you can change the value if you want and use it again. Okay, so your introduction is the following.   Okay, so if we enter this, we get a sequence of numbers. This one is just telling us that we've assigned a to 2. This one tells us we assigned b to 3. This one here is the result of a plus b. This one's the result of a times b. And this one's the result of a to the power b. Okay?  It's kind of a pain, right? So there's a very useful thing to be able to do because you don't necessarily want to see the results of all these things, right? You might want to hide the first two, for example. The way you do that is you use a semicolon. This will suppress the output of a given operation. So to see how that works, let's go back and put a semicolon here. And a semicolon here. Wow. And do it again. Now you see that the initial assignment of a and b has been hidden and in general there will be lots of things we don't want to see. We may want to do a whole bunch of calculations and only see the last result, right? And then we get the things in a row here. All right. Now, what else can we do? Another thing we can do is we can make expressions, all right? So now I can say, for example, x equals 2 times a plus b, all right? And if I enter that, I get 7 because I've assigned 2 to a, so 2 times 2 is 4 and I've assigned b equals 3 so 4 plus 3 is equal to 7. All right? Now, suppose I want to go back and just have x defined as an algebraic expression but without any numbers assigned. There's a very useful command that allows you to remove the assignment of a variable name to a number. And this is very useful if, say, within the same notebook, you're using the same name for a number that may, you may use it in one set of units in one place and another set of units in another place so the numerical value changes. So for example, the gas constant might be, you can have that in SI units or you can have it in liters, atmospheres, moles, Kelvin. And as you know by now in chemistry and physics and sciences, we oftentimes use the same letters to refer to different things, okay? And if you're using the same letter in multiple places in a notebook, you may forget that you assigned it to one thing somewhere and you'll get some bogus answer down below when you try to use it in a different context. So there's a very useful command that I will use a lot when we start doing more complicated things which removes the assignment of a variable and that's called the clear command, all right? And so the way I can do that is I can say clear and suppose I want to clear the A, okay? Put a semicolon and now I ask what is X? A, that wasn't supposed to happen. Oh, X, sorry, X was already assigned. Let's clear A and X and now you see X is no longer defined. If I look at A, it's no longer defined.  If I clear B and then ask what's X, I get back to my, oh, I'm sorry. So actually this is showing something that's really, it's gotten me confused today and probably get me confused and you confused later. X was already defined as 3 plus 2A here, right? Yeah, so I have to clear it again and redefine it if I want to use it, all right? So if I clear X and now I say X equals 2 times A plus B, now I get back to my pure expression. So you have to be really careful when you assign things if you're going to make assumptions about using those expressions later. It's always helpful to clear things and reassign your variables if necessary, okay? All right, so those are some simple examples of defining variables, assigning numbers to them and then using them in expressions, okay? And you'll get to do some of that in your homework. All right, now the next thing, and this is another very, very important thing that we'll be doing a lot and so I suggest you pay close attention, is we're going to learn how to define functions, all right? This is extremely useful. And so the first thing we'll do is we'll take that parabola that we plotted earlier and we'll assign it to a function which I'm going to call f of X. And what I want you to do here is pay very close attention to the syntax, the way the definition works because this is probably one of the most common sources of mistakes that we'll encounter this quarter, all right? So what I'm going to do is I'm going to define f of X equals that parabola we saw earlier, all right? So the way I do that is I say, give my name, it doesn't have to be f, it could be whatever you want, f. And then remember, arguments of functions come in square brackets. Now, the next thing I do is I put in the argument. And here's one thing that maybe it doesn't make sense but you have to do it otherwise your function won't work. When you define a variable argument to a function, you have to put an underscore. Why is that? Well, why is that is because you may have several arguments to a function but some of them you may wish to remain constant or you may want to put in a particular value so that it's not actually an independent variable. This is so you can distinguish between true independent variables and some parameter or something, all right? So if you want to indicate the variable, when you define the function, you have to put in the underscore and leaving that out is a great source of error. The next thing is when you're first defining the function, you don't just use the equal sign. The function definition is special and it has colon equal. All right, now we define our function. So at this point we could put anything we want in here but I'm going to put in that parabola. Two times x minus four, quantity squared plus one, okay? So I enter that and if I did everything right, usually I won't get any feedback. Now I can check at any time to see if I've assigned f to a function. There's, if I say question mark f, it will tell me whether or not it's assigned and if it is assigned, it will tell me what it's assigned to. So if I enter that, you see that I've, this just means that it's a globally defined function and it tells me how I've assigned it and so I can actually check to make sure it looks like what I want it to look like, okay? Now, once I've defined this function, I can do lots of things with it. So for example, suppose I want to evaluate it for a given value of x, like say x equals one. All I have to do is say give me f of one and you see I get 19. Does that make sense? X minus four is minus three, squared is nine, times two is 18, plus one is 19, okay? You can put in whatever you want. Suppose you say f of pi. If you put in pi, as I told you last time, Mathematica will keep the exact result, so in this case it just puts in the pi. If I want a numerical value for that, I can say n bracket percent like we learned last time. And so there's my numerical value. Another thing I can do is I can plot it by referring to x, I mean f. So I can make the same plot as we made before by saying plot f of x comma and then x goes from three to five. If I do that, I get the familiar plot that we made before, okay? So this is a very, very useful thing to be able to do. Now, yes? Okay. Is there a way you can clear all the variables that you can assign numbers to? Yeah, you just say clear, put in brackets and list them all. Any other questions? Yeah, you sure? Okay. All right. So the next thing I want to do is I want to define a quite complicated function that's relevant to chemistry. And the reason I want to do this is because I want to emphasize to you that oftentimes the way we type functions in this command line of Mathematica looks a lot different from the way it's written in the textbook or on the homework assignment or whatever. Now a little later we'll learn how to typeset our things. But for now anyway, I want to teach you the brute force way to do it. And the main point of this is that as time goes on, we'll be working with fairly complicated functions. And there's lots and lots of ways that you can make mistakes. And so I want to point out a couple of those here. All right. So what we're going to do, I'm going to write the function on the board, is we're going to plot something that you've seen before. You may not have ever seen the formula, but you've certainly seen the function. And it's called the Maxwell-Boltzmann distribution. Does that ring a bell to anyone? Okay. Well, I'll remind you, since I know you know what it is. This is the probability that comes from kinetic theory that an ideal gas molecule has a certain speed. And you may remember seeing this in your G-chem textbooks. It looks something like this, right? It's a distorted bell curve. Okay. And often the variable used for the speed is u. And that's in meters per second in SI units. And then the y-axis is often called f of u or p of u. And it's just the probability that a gas molecule and an ideal gas has a speed within a small increment around u. Okay. Now, the formula is as follows. And this is what we're going to type in, and then we're going to plot it. And hopefully you'll see that it's kind of cool, because you can quickly remind yourself of some things that you were probably asked about on your G-chem final exam in Chem 1A, probably. All right. So this formula looks like this. Okay. So if you look up the Maxwell-Boltzmann distribution in your favorite textbook that may have it. Oh, yeah, let's turn on the light. Oh, thank you. Did I turn off the light? Oh, okay, there we go. All right. So 4 pi times quantity m over 2 pi RT, m here, if we're in SI units, would be the molar mass in kilograms per mole. R is the gas constant, 8.314 joules per Kelvin per mole. T is the absolute temperature. Use the speed in meters per second, and that's everything. Okay. Now, another thing about somewhat complicated formulas is that it's never a bad idea to see if you can't predict before you actually plot it what it might look like. That's not always going to be the case, but whenever you can, it'll be helpful, because there's a lot of ways to screw this up when you enter it in, and when you make a plot, you want to be able to kind of tell whether or not your plot is bogus or it seems to be correct. So let's ask ourselves, what does this thing look like when u is very small? Well, when u is very small, how does this thing look, this exponential? It goes to 1. So the dominant functional behavior is u squared. u squared is a parabola. So it should look like a parabola at small u. What about at large u? At large u, this guy starts decaying very quickly, because it's got u squared in an exponent. So the large u dependence of this function is going to look like a fast decaying exponential. So that's why you have this tail here. Okay? So that helps so that when we make a mistake typing this in, we'll recognize it, and when we get it right, we'll say woo-hoo. All right? So let's go ahead and type that sucker in, and then we'll play around with it a little bit. All right. So notice I already defined f here, and I want to use the same variable. So to keep from getting in trouble, I'm just going to write ahead, right away, say clear f. All right? Okay, now I start typing. So f of u, remember underscore for the variable, colon equals. Then I have 4 times pi, capital pi, and then times parentheses. Another thing that I want to recommend to you is even though the formula over there has some capital letters, and usually you can get away with using capital letters, all of Mathematica's predefined stuff, variables, and functions, they start with capital letters. And so to avoid accidentally stepping on one of those or using them where you don't want to and getting an error, I recommend that you always begin your variable and function names with a lower case letter, even if it doesn't look pretty. Okay? So I'm going to go ahead and use little m for the math. So m and then divided by 2 pi r t.  So already one of you sees a problem with this. So how is this going to be interpreted? What it's going to do is it's going to divide m by 2 and it's going to multiply all of that by pi r t, which is not what that formula says. That formula says multiply all these together and then divide m by that. So in order to make sure that that actually happens, I have to use parentheses to keep the pieces of the denominator all together. Okay? All right. Now, I want to raise the whole thing to the 3 halves of power. So carat and then to make sure I get my 3 halves, I put that in parentheses. And now I want to multiply by u squared. And then finally, I have to put in that exponential. So remember capital E and then carat and some parentheses. And now I'm going to use parentheses to group the numerator and denominator of the argument to the exponent together. So the first one is minus m times u carat 2 parentheses. And then divided by parentheses 2 times r times t. All right? So does that look right? Let's enter it. Okay. Now what we're going to do is we're going to plug some numbers in. And we're going to see if it looks like what we remember from GCAM. All right? So I'm going to do N2. So it'll be like a typical gas molecule in the air in this room. All right? So I'm going to say the mass is equal to 0.028. That's the molar mass of N2 in kilograms per mole. Okay? I'm going to put a semicolon because I don't want to see it. I'm going to put in room temperature. So 300 Kelvin. All right? And what else do I need to specify? R, the gas constant. So I'm working in SI units. So I'm going to say r equals 8.314. And that's Joules per mole Kelvin. All right? And now what I'm going to do is I'm going to plot F of U. And what you may or may not remember from GCAM is that the average speed of a typical low mass gas molecule at room temperature is a few hundred meters per second. So that tells me that if I want to see the full range of this curve, I might want to go out to say a couple thousand. That's going to be my range for U. So U goes from 0 to 2,000. All right? And let's let it rip and see what happens. And sure enough, I get something that looks like the Maxwell-Boltzmann distribution. Look familiar? By the way, another thing that you can do anytime in this class is if you need to go look something up somewhere, to check your result because maybe you think, oh, I've seen that before, but I don't remember what it looks like. Feel free to Google Wikipedia, whatever you want in this class. I encourage that. Okay? So anyway, if you were to Wikipedia, the Maxwell-Boltzmann distribution, you'd find a curve that looks like that. All right, now we have a learning tool because now we can say, oh, I forgot how that changes when I change the mass. So suppose I want to say, hmm, what happens if I look at a heavier gas molecule like chlorine, Cl2? Well, I can change the mass. So let me go ahead and just, well, let's go down here so we can see it. So now I'm going to change the mass to M equals 0.079. That's the molar mass of chlorine, Cl2, in kilojoules or kilograms per mole. And now I can just mouse this guy back in and put it here and replot. And now I can remember what happens when I change the mass of a gas molecule. Notice that I've moved the most probable speed from over around 500 down here to, you know, around 300. And this makes sense, right? Because we remember from GCEM that heavier molecules move slower at a given temperature than lighter molecules. What if you wanted to see the effect of temperature? What happens as you crank up the temperature to the speed of a gas molecule? It increases. All right, well, let's go down now and have a look at what happens if we change the temperature to 1,000 Kelvin and then replot. So now this is going to be chlorine at 1,000 Kelvin. And sure enough, you see that the peak moves to the right and the distribution becomes broader. So you can compare these two to see the temperature effect. All right? So there you have it. That's a somewhat complicated looking thing there. And we successfully typed it in and we actually used it to dust the cobwebs off of our knowledge about kinetic theory of gases. All right? Okay, so we have a few minutes left. And what I'm going to do now is just show you a couple more little miscellaneous things that you may find useful in your homework.  Okay?  Now, what you'd really like to be able to do if you, say, are doing your homework and you want your TA to understand which problem you're working on and maybe you even want to provide some information about what you're actually doing so that if you do happen to make a mistake, they can at least tell whether or not you knew what you were doing or supposed to do. You want to add information in your notebook that's not actually executed but is just meant to be informative. This is useful if you have a very complicated notebook and you want to give it to somebody else and have them be able to read through it and understand it. Okay? So there's a couple, there's lots of ways to do this. I'm just going to show you two. Okay? So the first is and simplest is to use what's called a comment. Okay? So a comment you can type directly in without doing anything else and the way that works is if you say parentheses star, that's a signal to Mathematica to ignore everything that comes after it. So for example here I'm going to say plot MB distribution for CL2 at 1,000 Kelvin.  Alright? And now if I enter that nothing happens because it's ignored but it does appear in the notebook. Alright? So you might want to say, you know, you might want to put another line in here that says this is homework one, problem one. Oops. And that will help your TA to see what it is you're actually working on. Okay? So that's one way. Another way which I find that most students prefer because it's a lot snazzier is you can go anywhere in your notebook and you can introduce a different type of area, okay? So so far all we've done is we've been in this sort of command mode but you can change into different modes. So for example, format style, I can change from input mode to text mode, okay? And now I can say this is a text box and if I want I can do all the usual things here like change the font and the font size. I can change the color of this to make it look different so that my text is say with a lime green background as opposed to just the white. You can play around with this stuff and make your notebooks look really snazzy and easy to read. Okay? So you're welcome to do this. You don't have to but I do advise at least at bare minimum the use of comments to make your notebooks as easy as possible to read. All right, now let's have a look at the homework. All right, so there should be a drop box set up for you. This is section A so it's going to say homework 1A and when you're done with your homework you can turn it in there by the deadline is Saturday 5 p.m. You should be able to get it done tomorrow. Easily within your two-hour lab session. So here it is. It's five problems. The first two problems are just to give you practice on putting parentheses in the right places. So first one you're going to see the difference between 2 to the 3 quantity to the 4th and 2 to the power quantity 3 to the 4th. You should get quite different numbers as you may be able to anticipate and then you can do this fraction of fractions. You can do this with exponents, okay? And for the second one you'll get an exact representation which is going to be a ratio of a couple of integers and I want you to convert that to a numerical value with 15 places using the N command. All right, then the next thing I want you to do is define these two things, okay? So these happen to be the radius and velocity within the Bohr model of the atom for the Nth Bohr orbit where N is the principal quantum number. M is the mass of the electron. R is this here. Z is the nuclear charge which for atomic number which for hydrogen is one. This E here is not the base of the natural logarithm so here's an example where we use the same symbol for two different things. As I say here E is the electron charge in Coulombs so all this is in SI units. H is Planck's constant, pi is pi and E0 which you can type in as if you want you can have little E0 next to it to make it different from E. That's what's called the permittivity of free space and it's numerical values given here in SI units. I'm sorry? You can use whatever you want, yeah, as long as the formula is right, okay? Now what I want you to do is to define these two things and then define the values of all the constants and then there's going to be one left over that's not defined, that's N, the principal quantum number and then I want you to evaluate both of these for N equal 1 and N equal 2 so the ground state and the first excited state of the hydrogen atom, all right? So you can think a little bit about how best to plan that. Because you need R to calculate V you should define R before V, okay? And then I ask you and you can give your answer in a comment or a text box, what are the units? And my hint to you is everything's in SI units so R is a distance in SI units and V is a speed in SI units. You don't actually calculate anything there, you just think about what are the units. Okay, next thing is I want you to plot this and this on the same plot. I tell you the range of X and the only stipulation here is that the second one, X over 2 minus 1 should be using a line that's twice as thick as the first one, all right? So you can make whatever color you want, I just want to see you change the thickness. So you might want to define a certain thickness for the first one and then twice that for the second one. Okay, and then the last problem, I'm sorry, I'm eating up a minute or two of your time here. It looks complicated but it's mostly because I'm trying to explain to you what it is that you're going to be doing in case you're interested. But what this problem boils down to is that I want you to define this function and later I'll teach you how to actually put things like lambdas in there so they look nice but for now you might want to just type it out lambda as a variable name. So you're going to define this function, H's Planck's constant sees the speed of light, those are given there, K's Boltzmann's constant is given here. So define that and the constants and then you're going to define another function down here which is also a function of lambda. And I want you to plot those two on the same plot. Here's the range of lambda I want you to use. And I tell you the range of in the y-axis that I want you to use so that you can see the difference between the curves and put in a temperature of 5,800. So what this is is that this formula here is the formula Planck derived for the spectral radiance of a black body as a function of wavelength. And when you were first learning quantum mechanics and general chemistry you learned that Planck introduced the quantization of energy E equals H nu and he did that so that he could derive this formula which correctly describes the shape of the spectral radiance versus temperature. And what you're going to see is that it's going to look something like the Boltzmann distribution. It's going to be a distorted bell curve. Now the reason that was so important is because it showed that his hypothesis E equals H nu was actually consistent with experimental data on black body radiation. And this curve is the best that physicists could do before Planck came along. This was based on classical electromagnetic theory. And what you're going to see by plotting these on the same plot is that this thing is really, really wrong. If this was correct there would be no such thing as darkness. Okay? So in any case, for us though it's just an exercise in plotting two curves on the same plot and I forgot to tell you somewhere in the instructions it says you have to include a legend. Okay? All right. So good luck, enjoy and we'll see you I guess on Thursday.


Hi everybody and welcome back to my channel. Today we are going to be doing a money clip system update. I will leave a link below to the video I did before about money clips. I use a version of the Dave Ramsey envelope system but with clips. Rachel Cruz, I will leave her information below as well. That's Dave Ramsey's daughter.  However, this is actually a really big clip. I had the tiniest clips that you could find and they are all gone now. So I'll explain why they're gone in just a moment but let's walk into the wallet. This is my Michael Kors wallet. I will leave a link below if I can find this wallet. I know the pattern this is kind of like a like a faux snake skin pattern. It no longer exists but the actual wallet style still does. So because I got this a long time ago. So here is my wallet and here is all my cash. So what I've been doing because I lost all of my clips and I'll explain how that happened in just a second. I have been using just some sticky notes and it says planning on this one. Like it's insane. Okay so let me show you how I lost all of my clips. This seems like a really great idea in theory. However, when you have not that many like bills of cash they just slip right off. So especially when you have let's say like one you know like one actual bill it can just pop right off. Super easy. So that was my problem and I had a few of them and then they all got lost. So this system does not work well for me. However, I was thinking about it and I'm like well all I really need is some paper clips because paper clips I think are a little bit easier. So here's all my cash first of all and like all my like my four categories of things. So I'm gonna set this off to the side real quick. I found these at Staples and I thought that these would be a really great tool because essentially they are a paper clip with a little flag on them. The flag is a little tall for what I want it for but I am going to make this work. So if you want to see how I'm going to modify my new cash clip system stay tuned. Okay so here's my little package I'm just gonna open it up. I only really want four of these but you know they come in a pack of there's what 28 total clips. I couldn't find any smaller ones than this. There are other ones that you could have purchased that were like wider than this but I wanted a small I wanted a small section if possible. So and I'm actually going to be trimming them anyway.  Oh isn't this just fancy like it stands up in everything. Oh that's really kind of cute. I guess you could probably like stand it up on your desk and then just like pull one out when you need it. Okay cool so I think what I'm going to do should I do one of every color or should I do like all four the same color. I think let's do like one of every color just for fun. I wouldn't mind if they were all the same color. Okay so we got those out leave that over here. So what I want to do so say like this is my grocery money that I have left for the month.  Does that make sense? Like so it's not going to like fly off like this little guy was.  So if I clip this back on like this and then put it in my wallet it could fit but it's going to be really tall. So I want it to make about half of the size that it currently is. So I'm going to trim this guy down. I'm actually going to trim all of them down and then I will write on them just because then I'll know like how much space I have and whatnot. So I'm just going to take it and cut it right in half and they don't need to be perfect. They just need to fit my wallet. I want to be able to close my wallet with ease and then if you want to you can actually round the corners a little bit. So I'm going to do that right now as well. It's not perfect but you know what it's okay. Right so now I am done with the rounding of the corners and the trimming them down. So to just show the difference that's how long it is compared to my new one that I'm going to use. So put this little guy back and now I'm going to write on these what the categories are. I use this. All of my writing utensils are always linked below for you guys. I know a lot of my plan with me is people have questions on what pens or markers I'm using. There's always an Amazon link below for you guys. I actually post that in almost every single video that you see that I'm using you know my hands essentially. So this is the Pilot Ultra Fine Point Permanent Marker and I am definitely team black. I know a lot of people are team blue but I prefer black. I just like the way it looks a little bit better but there is a link below if you are interested. So okay so my four categories are grocery, dining, clothing and planning. All of the other things that I purchase I don't have a problem you know spending in those categories if you will. So these are the ones that I like to personally control. I know that there's lots of other people that have only maybe two cash things that they use. There's many people that have more than four that they'll have like 10 or 20 different categories of envelopes or cash clip systems that they use. My feeling is use it however it works for you and your life. For me these are my four trigger points that I spend too much in so if I control it with cash it's a lot easier to see like literally my dining budget has six dollars left in it. Like that's how much I have left until the end of the month and that's okay. But like clothing I have some money in there because I didn't spend anything this month and I'm maybe going to be waiting for some sales. I want to save up for some other stuff. Like my planning budget is a little low right now because I just bought some stuff. Like you know you just got to feel like what's good for you and what works for controlling your spending. So for me I've been doing this for quite a while and these four categories are like I said the ones that just I spend the most in. Okay so maybe I'm going to be a little strategic about where I actually put these. Let's see. Maybe we'll do grocery as green. How about dining, clothing, planning. Let's go like that. Planning. Yeah I like the way that looks. Okay cool. All right so let's hope I don't mess up too horribly on the writing situation. All right so my grocery is done. There's my dining. Just gonna write clothes for short and planning. That one was a little bit difficult to like put in there but that's okay. All right so let's take these little things off because I don't need them anymore thank goodness. So and the nice thing is that these have like a little thing on the back as well. So yeah I don't know I like these. I really like these a lot. So my grocery budget has the most like actual bills in it right now and I feel like it feels like really nice in like on the money. Like I feel like it feels really nice in there. And actually something that I like to do is I like to kind of like put them in like file folders and I'll show you what that means in just a second. So let me get all of the clips on. So there's my dining. Oh I love the way that looks. It looks so nice. Clothing and then my last category is planning. Okay so my planning is gonna go right there. I kind of put this in like order of importance or order of like how often I grab for that specific stack. So planning and clothes are the ones that I don't grab as often. See what I'm doing here. I'm kind of making little tabbies. And then the dining is kind of my second most used and the grocery is what I use the most. So now that's kind of what it all looks like. Let me zoom you guys in so you can see a little bit better.  So let's take a look and see how it looks in my wallet. Okay so here is the inside of my wallet. My cards are all covered up and I'm just gonna place these in here so you can see. And inside of here I can kind of like separate it a little bit more like you know. Anyway there's like spots for cash but I have to fold them because of the way that the wallet style is. So yeah that is how it looks in my wallet and I'm really really excited about the way that this looks. So if you guys are interested in how much like dollar amount I put in all of my budget categories feel free to click the link below. I will put in my money talk playlist which has all of my budgets in there. I do a budget every single month and I film it here on YouTube so make sure to check that out if you haven't already. And if you guys actually make these feel free to tag me on Instagram, tweet me. All of my social media links are below. I would love to see your rendition of how you use this cash clip system. Like I said these are from Staples. I will put a link below as well if I can find them. You know you will have to trim them down depending on your wallet style and size but I really like this system so much better than the other clips. So then hopefully you won't lose them. And the nice thing is there's more of these so if I do end up losing one for some reason or like a clip gets stretched out I can always just make another one. It's no big deal. So anyways this is going to be it from me. This was kind of just a short and sweet little video showing how I'm going to update my cash clip system. If you guys have any questions feel free to post them below and I will get back to you. If you like this video or want to see more financial videos make sure to give this video a thumbs up. And if it's your first time here feel free to subscribe. Even if it's your second or third time here and you haven't subscribed yet feel free. I am here every Monday, Wednesday and Friday with new videos for you all. So I hope you guys enjoyed a peek inside of my financial wallet and I will see you all in my next video. Bye guys!


Good morning, welcome to morning prayer on this wonderful day that the Lord has made and that we get to choose, we get to make the very purposeful intentional choice to rejoice and be gladdened this morning. For the sun has risen another day, we have breath in our lungs and there's no other better way for us to express our gratitude, for us to express our thanksgiving to God than to waking up and coming to him and lavishing him with thanksgiving and with praise, with honor, glorifying his name and lifting him up from right where we're at. And so right now we are crying out from the heart of our city to the heart of God, to the very throne room of God and wherever you're at today, whether you're in your home or you're in your car on your way to work or maybe you're already at work, you have the same opportunity that we do right here in this place and that is to reach up and to touch our Heavenly Father and to bring him the praise and the honor and the glory that he is due. This morning as I was coming in, I just felt this burden on many of us that many of us are just worn out and tired, that we need strength, that we've been going and going and going and we just need a revitalization, if you will, that we need a shot of energy and strength brought back to us. And the Lord put Psalm 86 on my heart, starting in verse seven. King David says, in the day of my trouble. So he's in the midst of a day of trouble. He's in the midst of weakness. He's in the midst of pain like some of us are in right now, like some of us are entering into in this day.  Not you might answer me, but you do answer me. Saints, we are convinced of this promise and this truth that even in the midst of our trouble, even in the midst of our pain and our weakness and our sorrows and our grief, that when we call out to God, he answers us. There is none like you among the gods, O Lord. Nor are there any works like yours. All the nations you have made shall come and worship before you, O Lord, and shall glorify your name. For you are great and do wondrous things. You alone are God. Teach me your way, O Lord, that I may walk in your truth. Unite my heart to fear your name. I give you thanks. O Lord, my God, with my whole heart, and I will glorify your name forever. For great is your steadfast love toward me. You've delivered my soul from the depths of sheen. Lord, we thank you for this day. We choose right now to spend this hour bringing you an offering of thanksgiving, bringing you an offering of thanksgiving, Lord God, with our whole heart, God, we bring to you an offering of thanksgiving, even in the midst of the day of trouble, God, we bring to you thanksgiving.  So Lord, would you turn our hearts to you? Would you remove our heart's attention from the trouble of our day, from maybe the trouble that we're walking into, or the trouble that surrounds this very age, the day of this age, God, and would you unite our hearts, God, to see how great and awesome you are despite the trouble that we are walking through, despite the trouble that we are having, would you unite our hearts, God, to see the great and wonderful things, Lord, that you are doing in the midst of trouble, despite the trouble, despite the pain, despite the problems, God. Lord, we bring to you thanksgiving, knowing that you are faithful and you are true, that you are just and that you are righteous, God, and that you answer us in this day of trouble. So Lord, here we are, would you speak to us? Here we are, God, would you speak to us? Here we are, God, would you speak to us? Would you speak to us, Lord, we call out to you, Lord? Here's our trouble, actually just right now, just in a posture of thanksgiving. Say, Lord, this is the trouble I have. This is the trouble I'm going through. This is the thoughts of trouble that continue to make me weak and make me feel incapable, Lord, that continue to drag me down. This is the trouble, God, just begin to confess your trouble, begin to bring him your trouble right now. Express it, don't be silent, Lord, just like the psalmist. We may not understand why we are having trouble, but we trust you in the midst of our trouble. We trust you in the midst of our trouble. You, God, do great and wondrous things, things beyond our comprehension, things beyond our ability to even understand. And so we trust you, God, in the midst of trouble, in the midst of our problems, in the midst of our thoughts, in the midst of all the stuff that we are travelling through. We are not alone, you are with us, you are so good. Open our eyes to see you, Lord, in the midst of our trouble. Open our ears to hear you answering us in the midst of our trouble, Lord. I just, as Olivia was seeing that I saw this picture, I don't know if this is a representation of a specific person or just a picture that the Lord showed me of multiple people, but I saw a young girl and she was sitting at a counter, like a bar top counter just on the other side of her kitchen and your hands were clenched in fists and then you just began to uncontrollably weep at the counter and you were asking out loud, when is it gonna stop? When is my trouble gonna stop? When is my trouble going to stop? And I just feel that right now, I don't know if you're in this room or if you're on this live stream and that is actually you last night or this morning, but I feel like you need to let go of a prophetic decree and that decree is what Olivia was just singing. So can we sing that again, Olivia? Just begin to sing this chorus over your life, over your trouble, over your situation, over your pain, depression. Deep trouble within a soul. And when you're playing this instrument and I just feel that what Jojo is playing right now is doing that. It's ministering to someone, multiple people right now. It's just, you can't explain it. How are you just at peace? And trouble is real to you. David said in verse seven, hey am I trouble I call, you answer me. He's answering you right now, fluctuates. But you're steadfast love and yours forever. Over to the day of trouble we confess. Yes, a day of trouble, above and beyond the day of trouble with your steadfast love. Your steadfast love is greater, stronger. It's like A$AP said, in the day of his trouble, he sought you. In the day of our trouble, Lord, we seek you. We seek you, Lord. We make the decision right now to not fall back into the recesses of fear, to not back down to the pressure of trouble. But Lord, we stand up. We put our eyes on you and we seek you, Lord. In the day of our trouble, of our personal trouble, Lord, we seek you. In the pressure, in the trouble of our day, we seek you, Jesus. Lord, we seek you. We seek you, we seek your voice. Trouble can say what it wants. We're not listening to trouble. We're listening to you. So Lord, would you speak to us despite our trouble? Would you speak to us despite our pain? Would you speak to us despite our disappointment? Would you speak to us despite our frustration? Lord, in the day of trouble, we seek you. We seek you, Lord. Here we are, Lord. Seeking after you, would you speak, Lord? Would you speak, God? In the midst of our trouble, would you speak? In the midst of uncertainty, would you speak, Lord? In the midst of doubt, God? Would you speak? In the midst of trouble, Lord, would you speak? Tell us. Or we need a whisper to assure us, Lord. Would you speak in the day of trouble? Would you speak, Lord? In the day of their testing, in the day of their trouble, they did not believe you. They did not believe you and they did not, Lord, trust in your saving power. So Lord, would you open our eyes to see your wondrous works, not only that you did back then, but that you're doing right now? Would you open our eyes to see the wonderful things that you are doing? The saving acts, the saving power that you are doing every single day in our lives? The way that you surround us as the mountains surround Jerusalem?  Open our, I mean, God. Open our ear to the sound of heaven, to hear that sound, God. Open our eyes, give us senses. Let us use our senses that you have given us, God, that you've woven into the fabric of who we are. To experience you, God. Would you open our eyes? Would you open our ears, Lord God? Would you open our taste buds? To not just say Psalm 34 verse eight, but to actually taste and see you, God. May we taste your goodness in the day of trouble. May we taste your goodness in the midst of our pain. May we taste your goodness, God, despite the things that are happening around us, Lord. Use our senses. Open up our senses, God. That we may experience you and trust you like never before, Lord. In the day of trouble, in the day of pain, in the day of uncertainty, in the day of disappointment, God. Lord, would you open our water, saw you, oh, God. When the water saw you, indeed, they, the deep tremble, I'm sorry, the deep tremble. Right now I want us to engage in a moment of intercession and I want us to be very intentional. Whatever comes to your heart first about what is troubling the church, whatever is troubling people in our city, whatever is troubling our nation, whatever the Lord first puts on your heart, whatever He first reveals to you is a troubling thing of our day. I want you right now to engage in intercession for you to take your place on the wall, for you to stand in the gap between people and the almighty sovereign God to stand in that gap, that gap of trouble and for you to speak to it and you say, you name that trouble and you demand, you command, you decree that it will tremble the way the waters trembled when they saw God, that when this trouble will see God, that it will tremble. And so God, we submit these troubles to you and we speak to the troubles right now, tremble at the presence of God, bow down to the presence of God and destruction, abortion, tremble at the presence of God, oppression, anxiety at the presence of God, prejudice, racism, hatred, division, tremble at the presence of God, at the presence of God, tremble at the presence of God, tremble. May the trouble of our day made in trouble of our lives, may the trouble of our city, may the trouble of our nation, God, may the troubles see you, may all of these troubles see you and tremble and retreat at the sight of you God, may the trouble of our day retreat at sight of you, at the very sight of you God wouldn't retreat. Psalm 29 goes through this progression about the voice of the Lord. And as Devin was singing that, the Lord pulled my attention there and I just wanna pray through Psalm 29, if you will. And I'm just going to read through the voice of the Lord parts. It starts at verse three. The voice of the Lord is over the waters. The voice of the Lord is powerful. The voice of the Lord is full of majesty. The voice of the Lord breaks the cedars. The voice of the Lord flashes forth flames of fire. Verse eight, the voice of the Lord shakes the wilderness. Verse nine, the voice of the Lord makes the deer give birth and strips the forest bare. And then verse 10 and 11, the Lord sits enthroned over the flood. The Lord is enthroned as king forever. May the Lord give strength to his people. May the Lord bless his people with peace. Lord, right now we ask you for your voice, for your powerful voice that is over the waters. Lord, that is full of majesty that breaks the strongest of trees, that flashes forth flames of fire, that shakes the wilderness God, that commands creation to give birth. We ask for your voice in the day of trouble, Lord. We ask for you to speak, Lord God. And as you speak, Lord, would it give your people strength in the midst of trouble, Lord? Would your voice give your people strength? Would it give your people peace, Lord?  Would you bless us, Lord, with peace as you speak, Lord, in Jesus' name? To our politicians, to our senators, to our representatives, would you speak? Would your voice speak and be heard? Lord, would you break the divide that exists between those aisles? Would you break the hatred and the animosity that is filled those rooms that are meant to lead people and help people and serve people, and to become vessels for the enemy to divide and hurt people, Lord God, would you speak in all of those meetings? Would you speak to our Congress? Would you speak, Lord? Lord, we prophesy that the voice of the Lord is over this nation. The voice of the Lord is over our senators. The voice of the Lord is over the house. The voice of the Lord is over the office. We prophesy the voice of the Lord over our government. We prophesy the voice of the Lord over Kalamazoo. Lord, would you cause Kalamazoo to tremble at your voice? Your voice is over Kalamazoo. Your voice is over this Southwest Michigan region, Lord. It is your voice, and so Lord, we want your voice and we ask you to speak. Would you speak? Speak, Lord. Your voice is over everything. As David said, Lord, in Psalm 28, 8 and 9, the Lord is the strength of his people. He is the saving refuge of his anointed. Oh, save your people and bless your heritage. Be their shepherd and carry them forever. Lord, we thank you for this hour where we have come to you, where we have confessed our day of trouble and we have put our eyes on you.  Lord, right now I ask that as we go about our day and that maybe we go even into trouble throughout this day, we ask for you to be our strength. We ask for you to be our refuge. We ask for you to be our shepherd. Lord, one thing I don't ask is, I don't ask that we would be removed from trouble, but that we would be strengthened in the trouble that we may endure the day of trouble. Be found faithful despite the trouble. Faithful to you. Be our strength, be our refuge, be our shepherd. Voice of the Lord would you speak over the waters in Jesus' name, we all say. Thank you for joining us for this hour of prayer, worship and intercession. I wanna continue to encourage you to engage in praying into this day. The hour, the day is not done. Let's continue praying into this day everywhere we go over people that we pass by. Let's continue to be the intercessors, the watchmen on the wall that we're called to be. Have a blessed day.


Before we get into the video people, I am giving away 11,500 Apex coins every single month. To be in with a chance of winning them, make sure you are subscribed to this channel and have that bell notification button ticked. Drop a like on this video and leave a comment down below. More details are in that video description. What is going on guys? Welcome back to the channel and I appreciate you being here. Today I bring you another Apex Legends video and today I bring you new information and another few new weapons found within the game files to Apex Legends, brand new weapons that we haven't covered in the past. But before we go any further guys if you enjoyed the video I would like to show you support you can by smashing that like button if you are new around here and enjoy those daily Apex Legends videos be sure to subscribe. Okay so the other day I posted a video on all non-weapons coming to the game, the L-Star EMG, the car, SMG, the proto hold beam, the orbital strike grenade, the smoke grenade and the frag drone. If you missed that video you will find it linked within the video description. But today guys new weapons have been found within the game files. The first one I'd like to talk about is a mother effing flamethrower. Yes you heard that right, a flamethrower. Now as crazy as it seems to me a flamethrower although it wouldn't really be something we wouldn't expect for Apex Legends I mean anything is possible here but looking at these data mined files I'm unsure if these are what people are initially thinking. Yeah I could be wrong with this guest but I think maybe just maybe these could be a new legends ability. I mean I could be incredibly wrong here and that's fine but a flamethrower thrown into the battle royale to me seems a little off compared to what we are used to. I mean it would fit in for sure it would be a fun great addition I ain't arguing that but I just have that feeling that this just might be an ability for a new legend to come. Well how do you feel about this? Now this information like what we see on the other weapon which I mentioned in a second we only have these details to go on and I'm guessing because there was a stealth patch over there which we know Nerf the wingman and the peacekeeper and I believe these files may be placeholder files which were added into that patch so I'm pretty sure more information will come on what these actually are. So release dates or times really is a nowhere near insight that is for sure but yeah people a flamethrower in apex legends sounds cool could be cool what do you think. So the other weapon found within the date and mine files is a remote tote. Now seeing this leads me to believe a game much like the flamethrower this either could be a new legends ability or maybe something we will see introduced in the near future which will come apart from those limited time game modes we have seen leaked in the past. Even thinking that though so could that flamethrower be also both the tote and flamethrower could be included in a limited time mode maybe that limited time mode we've seen the titans associated with or vehicles or maybe even the 24 and 24 because at this date it's just speculation and as much and as cool as I do think these could be I'm guessing well definitely that tote because I highly doubt there will be something you can find via looting then again maybe people maybe something you can find while looting maybe it's a legendary item which you have a one-time use of only with limited ammo maybe the flamethrower will work the same I mean there are many ways respawn can add these into the game and keep them balanced but for now with the single three man battle royale mode these kind of feel like I jumped too far forward for this mode and that's probably what they are I mean a flamethrower and a tote they could indeed be like I've said a part of some new legends abilities I'm more so to the fact that they could be a part of a new game mode I mean like I said they could be new legendary items because we haven't got many legendary items in the game you can find via the supply drops a single used tote could be a great addition like I said if they keep it well balanced and a flamethrower too because obviously a flamethrower is going to have to be used at that close range but we will see people we will see it's all speculation and guessing my behalf right now but yeah these new weapons have recently been found within the game files to apex legends so they are a part of this universe but when we will see them and how they will be incorporated is something at this present moment in time something we have no idea run but yeah tell me what you think about these down below within that comment section people are they good additions how do you feel they could work let me know on that note guys we have commented at the end of the video if you guys enjoyed it leaving a like really does help out if you are new around here and enjoy daily apex legend videos like guides top fives gameplays reviews community highlights leaks absolutely everything make sure you subscribe and if you never want to miss a video I upload you can turn notifications on by hitting that bell button but guys thanks as always for stopping by and hopefully I will see you on that next one