Math question(algebra)

This is a discussion on Math question(algebra) within the C++ Programming forums, part of the General Programming Boards category; I am trying to make a small prog to encrypt files and I am not very good with equations, so ...

  1. #1
    Matt
    Guest

    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
    ER
    Guest
    [code]
    echar = 1. / (echar * (echar-1074) / wkey - 289);

  3. #3
    Matt
    Guest

    Question

    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 Cprogramming.com
    Replies: 16
    Last Post: 04-01-2009, 06: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, 07:39 AM
  5. toughest math course
    By axon in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-28-2003, 10:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21