Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Searching for symbolic math .NET component

Searching for symbolic math .NET component

Scheduled Pinned Locked Moved IT & Infrastructure
csharphelpwinformsalgorithmsquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Quimbly
    wrote on last edited by
    #1

    I'm working on a behavioral animation project using C#, WinForms, CsGL and NewtonDynamics.NET. What remains is for me to do is find a .NET math component. Behavior of my critters is defined, in relation to other critters, by a mathematical function which returns a scalar value. This value is then used as a scale to determine the degree of force to apply to the critter, resulting in movement towards or away from the other critter. This is a simplification, but I hope you get the idea. The problem is that I'm currently defining these "behavioral functions" in code. Hence, I can't change a behavior of a critter unless I change the code and recompile. What I want is to be able to define or change these mathematical function at run-time. What I'm picturing is a a pop-up window where I can visually and symbolically define or modify a behavioral function at run-time. The function would be a standard math function, returning a double, and making use of basic numeric mathematical operators like: addition, subtraction, powers, roots, trigonometric functions, etc. I could invent a little visual, symbolic math language and write my own interpreter for it, but I'm sure this sort of thing has been done before. Does anyone know of a .NET component that could help me out with this sort of thing? Thanks.

    K A 2 Replies Last reply
    0
    • Q Quimbly

      I'm working on a behavioral animation project using C#, WinForms, CsGL and NewtonDynamics.NET. What remains is for me to do is find a .NET math component. Behavior of my critters is defined, in relation to other critters, by a mathematical function which returns a scalar value. This value is then used as a scale to determine the degree of force to apply to the critter, resulting in movement towards or away from the other critter. This is a simplification, but I hope you get the idea. The problem is that I'm currently defining these "behavioral functions" in code. Hence, I can't change a behavior of a critter unless I change the code and recompile. What I want is to be able to define or change these mathematical function at run-time. What I'm picturing is a a pop-up window where I can visually and symbolically define or modify a behavioral function at run-time. The function would be a standard math function, returning a double, and making use of basic numeric mathematical operators like: addition, subtraction, powers, roots, trigonometric functions, etc. I could invent a little visual, symbolic math language and write my own interpreter for it, but I'm sure this sort of thing has been done before. Does anyone know of a .NET component that could help me out with this sort of thing? Thanks.

      K Offline
      K Offline
      Kevin McFarlane
      wrote on last edited by
      #2

      Why not have a look at the latest version of Mathcad? www.mathcad.com[^]. If you're in education no doubt you can get it for a reasonable price. I used to provide tech support on this 10 years ago. It was a brilliant app then, so must be superb now. Mathcad also has a slick programming language built into the UI and you can also extend the set of worksheet functions via C/C++ if required. Mathcad behaves like a mathematical spreadsheet. Change an equation and it recalculates. Kevin

      1 Reply Last reply
      0
      • Q Quimbly

        I'm working on a behavioral animation project using C#, WinForms, CsGL and NewtonDynamics.NET. What remains is for me to do is find a .NET math component. Behavior of my critters is defined, in relation to other critters, by a mathematical function which returns a scalar value. This value is then used as a scale to determine the degree of force to apply to the critter, resulting in movement towards or away from the other critter. This is a simplification, but I hope you get the idea. The problem is that I'm currently defining these "behavioral functions" in code. Hence, I can't change a behavior of a critter unless I change the code and recompile. What I want is to be able to define or change these mathematical function at run-time. What I'm picturing is a a pop-up window where I can visually and symbolically define or modify a behavioral function at run-time. The function would be a standard math function, returning a double, and making use of basic numeric mathematical operators like: addition, subtraction, powers, roots, trigonometric functions, etc. I could invent a little visual, symbolic math language and write my own interpreter for it, but I'm sure this sort of thing has been done before. Does anyone know of a .NET component that could help me out with this sort of thing? Thanks.

        A Offline
        A Offline
        Andy Brummer
        wrote on last edited by
        #3

        Check out some of the C# code compiler articles on CP. You can dynamically compile C# within your application and then call the generated assembly.


        I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

        A 1 Reply Last reply
        0
        • A Andy Brummer

          Check out some of the C# code compiler articles on CP. You can dynamically compile C# within your application and then call the generated assembly.


          I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Dynamically compile C# code? Bwah?! Where?! That sounds like fun.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups