Robert Mařík avatar Robert Mařík committed 795380e

Parametry pro Tayloruv polynom je mozno predat v URL.

Comments (0)

Files changed (1)

+<?php 
+$function=rawurldecode($_REQUEST["function"]); 
+if ($function=="")    {     $function="sin(x)";   }
+
+$center=rawurldecode($_REQUEST["center"]); 
+if ($center=="")   {     $center="0";   }
+
+$degree=rawurldecode($_REQUEST["degree"]); 
+if  ($degree=="")   {     $degree="5";   }
+?>
+
 
 <span class="nadpis">
 <?php echo __("Taylor polynomial");?>
 <?php polejazyka($lang); ?>
 <?php echo __('Function'); ?>
 <span style="font-style: italic;"> f(x)=</span> <input size="40"
-name="funkce" value="sin(x)"> &nbsp; &nbsp; 
+name="funkce" value="<?php echo $function; ?>"> &nbsp; &nbsp; 
 <input value="<?php echo(__("Editor")); ?>" onclick="edit('funkce')" type="button" class="tlacitko"> 
 
 <?php hint_preview(); ?>
 
 <?php echo __('Degree of Taylor polynomial'); ?>: 
-<input size="5" name="rad" value="6"> <br>
+<input size="5" name="rad" value="<?php echo $degree; ?>"> <br>
 <br>
-<?php echo __('Center of Taylor polynomial'); ?>: &nbsp; <input size="5" name="bod" value="0"> 
+<?php echo __('Center of Taylor polynomial'); ?>: &nbsp; <input size="5" name="bod" value="<?php echo $center; ?>"> 
 
 <br>
 <?php echo $submitbutton;?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.