Search:

Type: Posts; User: RandomX

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    9,008

    Im not quite sure what that means. im fairly new...

    Im not quite sure what that means. im fairly new to programming....

    Would you care to expand?
  2. Replies
    10
    Views
    9,008

    so with that being said.... any one have any new...

    so with that being said.... any one have any new input to help me out here?
  3. Replies
    10
    Views
    9,008

    Yes, Im sorry. I wasnt thinking right. The...

    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
  4. Replies
    10
    Views
    9,008

    i get the error during compilation, yes. There...

    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
  5. Replies
    10
    Views
    9,008

    Bus error (Core Dumped)

    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...
  6. Converting decimal to binary within a I/O program

    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...
  7. Replies
    29
    Views
    2,578

    Well Ive been posting this stuff on two different...

    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....
  8. Replies
    29
    Views
    2,578

    If I did Newtons method, I would first have to...

    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,...
  9. Replies
    29
    Views
    2,578

    well im gonna get started on this in the...

    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...
  10. Replies
    29
    Views
    2,578

    ok... well what conclusion can we come to about...

    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.
  11. Replies
    29
    Views
    2,578

    I am just curious what the coding would look like...

    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.
  12. Replies
    29
    Views
    2,578

    keep in mind this is a entry level course for the...

    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...
  13. Replies
    29
    Views
    2,578

    So my options are: 1. Compare the numbers one...

    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...
  14. Replies
    29
    Views
    2,578

    I just thought about this..... Instead of...

    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.......
  15. Replies
    29
    Views
    2,578

    makes perfect sense now. this reminds me when we...

    makes perfect sense now. this reminds me when we used these programs in class to sort out data sets
  16. Replies
    29
    Views
    2,578

    if (num1 < num2) { num2 = num1; ...

    if (num1 < num2)
    {
    num2 = num1;
    }

    Would you mind explaining the logic behind this part? The num2 = num1 part doesnt make sense to me.
  17. Replies
    29
    Views
    2,578

    so first should I go through and store the value...

    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...
  18. Replies
    29
    Views
    2,578

    yes that is what Im thinking. So, then my...

    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...
  19. Replies
    29
    Views
    2,578

    Noob Question....Any help appreciated

    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...
Results 1 to 19 of 19