DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  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?

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links