Im not quite sure what that means. im fairly new to programming....
Would you care to expand?
Type: Posts; User: RandomX
Im not quite sure what that means. im fairly new to programming....
Would you care to expand?
so with that being said.... any one have any new input to help me out here?
Yes, Im sorry. I wasnt thinking right.
The program compiles perfectly. But when I run it, I get the Bus error. Thanks for straightening my out, lol
i get the error during compilation, yes. There are no other errors during compilation. It does not create the LMC.o file at all... so I guess Im kinda stuck
Hey everyone,
I am writing a basic program titled, "LMC.c" that takes the contents from a file "LMC.s", and outputs them into another file "LMC.o"
Here is the input file, LMC.s
INP 00...
I have to make a 'C' program that takes a set of decimal numbers that are stored in an input file, and then convert the decimal numbers to binary, and then store those conversions into the output...
Well Ive been posting this stuff on two different forums talking about the derivative stuff.... both places have told me to not make it so complicated, and I dont know why I was so persistent on it....
If I did Newtons method, I would first have to find X0. But in Newtons method, you find X0 but making an "initial guess". There cant possibly be a way to have the program make the initial guess,...
well im gonna get started on this in the morning.... ill ask u guys more if i come across any more issues, which i might when i get to the little man source to binary conversion.
again, im a...
ok... well what conclusion can we come to about which will be the easiest...
using the min/max formula?
or
doing the sequence structure like we originally mentioned.
I am just curious what the coding would look like for a derivative. I think Im just gonna do it using the max/min formula.
keep in mind this is a entry level course for the computer science major. Plus, I have a feeling Im looking too far into this, but I wouldnt mind making mine a little more complex... I enjoy a...
So my options are:
1. Compare the numbers one by one
2. Take the derivative and set equal to 0
3. Use the max/min formula
I think the max/min formula might be the easiest to code up and...
I just thought about this.....
Instead of using the quadratic formula, why not just taking the derivative of the function then setting it equal to 0
2x-8=0
That gives me my answer I need.......
makes perfect sense now. this reminds me when we used these programs in class to sort out data sets
if (num1 < num2)
{
num2 = num1;
}
Would you mind explaining the logic behind this part? The num2 = num1 part doesnt make sense to me.
so first should I go through and store the value for each number from the equation?
num1=95 (-5)
num2=78 (-4)
num3=63 (-3)
....
and so on....
By the way, thanks for the...
yes that is what Im thinking. So, then my algorithm for this would be just a series of
if variable is less than previous variable,
then move onto the next variable
It would keep doing that...
Hey everyone!
First off, I just found this board and I am impressed. It looks like you have a very intelligent community here. Anyways, I am a freshman studying Computer Science at Minnesota. I...