Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rhino:rhino_math_solver [2015/09/14]
127.0.0.1 external edit
rhino:rhino_math_solver [2015/12/04] (current)
sandy
Line 1: Line 1:
-====== Using Rhino To Solve Mathematical Equations ======+====== Using Rhino to Solve Mathematical Equations ======
 Rhino is a 3-D modeling application that can solve graphically. For example, if you want to know if two curves or surfaces intersect, you can use the **Intersect** command. If you want to know the centroid, volume or principal moments, you can ask Rhino that, too. Rhino is a 3-D modeling application that can solve graphically. For example, if you want to know if two curves or surfaces intersect, you can use the **Intersect** command. If you want to know the centroid, volume or principal moments, you can ask Rhino that, too.
  
-However, you can also use Rhino to solve mathematical equations. ​ +You can also use Rhino to solve mathematical equations. But Rhino does not have commands like //solve equation// or //plot graph//. The standard keyboard is also a problem. Where is the square root sign, superscriptor subscript?
-  * But Rhino does not have commands like "solve equation" ​or "plot graph". +
-  * The standard keyboard is also a problem ​where is the square root sign, superscript or subscript?+
  
-Therefore, you will need to use scripting.+So, you will need to use scripting.
 Rhino has a script editor made specifically to help with these problems. Rhino has a script editor made specifically to help with these problems.
  
 **Rhino 5 contains two scripting languages:​** **Rhino 5 contains two scripting languages:​**
-  * **[[http://​wiki.mcneel.com/​developer/​python|Rhino.Python]]**+  * **[[http://​wiki.mcneel.com/​developer/​python|RhinoPython]]**
   * **[[http://​wiki.mcneel.com/​developer/​rhinoscript|RhinoScript]]**   * **[[http://​wiki.mcneel.com/​developer/​rhinoscript|RhinoScript]]**
 Rhino 4 contains only **RhinoScript**. ​ Rhino 4 contains only **RhinoScript**. ​
  
-//Because of this, we would recommend using RhinoScript.//​+//Because of this, we recommend using RhinoScript.//​
  
-[[http://​discourse.mcneel.com/​|{{:​developer:​mcdiscourse.png |http://​discourse.mcneel.com/​}}]] Ask questions on our [[http://​discourse.mcneel.com|Discourse ​support forum]]. When posting questions, please use either the **[[http://​discourse.mcneel.com/​category/​rhino-developer|Rhino Developer]]** or the **[[http://​discourse.mcneel.com/​category/​scripting|Scripting]]** category.+[[http://​discourse.mcneel.com/​|{{:​developer:​mcdiscourse.png |http://​discourse.mcneel.com/​}}]] Ask questions on our [[http://​discourse.mcneel.com|discourse ​support forum]]. When posting questions, please use either the **[[http://​discourse.mcneel.com/​category/​rhino-developer|Rhino Developer]]** or the **[[http://​discourse.mcneel.com/​category/​scripting|Scripting]]** category.
  
-===== The Basics ​===== +===== The basics ​===== 
-To illustrate how you can use **RhinoScript** to solve mathematical ​problem, I have written two simple scripts that solve the first two questions of the math practice test.+To illustrate how you can use **RhinoScript** to solve mathematical ​problems, I have written two simple scripts that solve the first two questions of the math practice test.
  
-Note, both of these solutions can be copied and pasted into the RhinoScript editor (**[[http://docs.mcneel.com/rhino/5/​help/​en-us/​information/​rhino_scripting.htm#​EditScript_command|EditScript]]**) for testing. +Note, both of these solutions can be copied and pasted into the RhinoScript editor (//EditScript//) for testing. 
-You will also need to know about these commands ​[[http://docs.mcneel.com/rhino/5/​help/​en-us/​information/​rhino_scripting.htm#​LoadScript_command|LoadScript]] ​and [[http://docs.mcneel.com/rhino/5/​help/​en-us/​information/​rhino_scripting.htm#​RunScript_command|RunScript.]]+You also need to know the commands //LoadScript// and //RunScript//.
  
-The basic steps are+The basic steps are:
   - Write a script function in script editor **EditScript**.   - Write a script function in script editor **EditScript**.
   - Or load a an existing file with the .rvb extension into the script editor.   - Or load a an existing file with the .rvb extension into the script editor.
Line 30: Line 28:
   - Use the **RunScript** command to run the function name.   - Use the **RunScript** command to run the function name.
 Note: Dragging a .rvb file onto the Rhino window will load and run the script. Note: Dragging a .rvb file onto the Rhino window will load and run the script.
- * From the Rhino Help menu, click Plug-ins and then click **RhinoScript**.+  ​* From the Rhino Help menu, click Plug-ins and then click **RhinoScript**. 
 Also see [[http://​wiki.mcneel.com/​developer/​vbsfundamentals|VB Fundamentals.]] ​ Also see [[http://​wiki.mcneel.com/​developer/​vbsfundamentals|VB Fundamentals.]] ​
  
Line 64: Line 63:
  
 ===== 3. RhinoScript Quadratic Solver ===== ===== 3. RhinoScript Quadratic Solver =====
-[[http://​wiki.mcneel.com/​developer/​scriptsamples/​quadraticsolver|See here.]]+See [[http://​wiki.mcneel.com/​developer/​scriptsamples/​quadraticsolver|A Quadratic Solver in Script.]]
  
 ===== 4. Finding the Perfect Squares ===== ===== 4. Finding the Perfect Squares =====
-[[http://​wiki.mcneel.com/​developer/​scriptsamples/​perfectsquare|See here.]]+See [[http://​wiki.mcneel.com/​developer/​scriptsamples/​perfectsquare|Finding Perfect Squares.]]
  
  
 //The great thing about scripting is that it can be adapted to solve nearly any problem and in any manner chosen by the script writer.// //The great thing about scripting is that it can be adapted to solve nearly any problem and in any manner chosen by the script writer.//
rhino/rhino_math_solver.txt · Last modified: 2015/12/04 by sandy