Thread: Math question(algebra)

  1. #1

    Question Math question(algebra)

    I am trying to make a small prog to encrypt files and I am not very good with equations, so I was wondering how you invert this equation:

    echar = echar * (echar-1074) / wkey - 289;

    echar is a float, and wkey is an int. Thanks for the help!

  2. #2
    echar = 1. / (echar * (echar-1074) / wkey - 289);

  3. #3


    It doesn't seem to work right, but I might just be my fault. What does the 1. thing do? I haven't seen that before. Thanks anyways.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Math
    By knightjp in forum A Brief History of
    Replies: 16
    Last Post: 04-01-2009, 05:36 PM
  2. Help with C++ Math
    By aonic in forum C++ Programming
    Replies: 4
    Last Post: 01-29-2005, 04:40 AM
  3. Basic Math Problem. Undefined Math Functions
    By gsoft in forum C Programming
    Replies: 1
    Last Post: 12-28-2004, 03:14 AM
  4. Math Header?
    By Rune Hunter in forum C++ Programming
    Replies: 26
    Last Post: 09-17-2004, 06:39 AM
  5. toughest math course
    By axon in forum A Brief History of
    Replies: 12
    Last Post: 10-28-2003, 10:06 PM