defining mathematical symbols


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: defining mathematical symbols

  1. #1
    Join Date
    Jul 2004
    Posts
    6

    defining mathematical symbols

    Hi there,

    I'm currently trying to write a program that requires me to generate some mathematical formulas. I've been able to use the extended ascii codes to represent some of them using code like below :
    int i = 64;
    String aChar = new Character((char)i).toString(); //Prints the ascii value of 64

    Some operators are not supprted however. I was wondering whether anyone knows how to define the logical connective "and" and "or" symbols ('look like an 'upside-down' V and V respectively), as well as the symbols for universal and existensial quantification. Any help would be greatly appreciated

  2. #2
    Join Date
    Feb 2004
    Posts
    541
    I don't know if the correct symbols are supported, but in code they are normally written as && (AND) and || (OR). Maybe you could use those instead?

  3. #3
    Join Date
    May 2004
    Posts
    219
    I'm pretty sure those symbols don't exist in traditional character sets. You'd have to find/obtain a special font for it.

  4. #4
    Join Date
    Feb 2004
    Posts
    808
    load up your charmap.exe (type charmap into start..run.. box) and look in there..
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center