Sindbad~EG File Manager

Current Path : /home/beeson/public_html/WebMathXpert/
Upload File :
Current File : //home/beeson/public_html/WebMathXpert/EntryPage.js

// If a user wants to "Edit Problem" we must find the 
// target page from which that problem could be entered.
// That's done by entryPage(topic) below.  

const OrdinaryGraphTopics=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
 
 /*

 #define _ordinary_graph                       1
 #define _ordinary_graph_quadratic             2
 #define _ordinary_graph_polynomial            3
 #define _ordinary_graph_linear                4
 #define _ordinary_graph_rational              5
 #define _ordinary_graph_fractexp              6
 #define _ordinary_graph_exponential           7
 #define _ordinary_graph_log                   8
 #define _ordinary_graph_algvariety            9
 #define _ordinary_graph_sincos               10
 #define _ordinary_graph_trig                 11
 #define _ordinary_graph_arctrig              12
 #define _ordinary_graph_htrig                13
 #define _ordinary_graph_trigvariety          14
 #define _ordinary_graph_bessel               15
 */

const AlgebraTopics = [44,47,49,50,57,58,59,60,61,63,64];
 
 /*
 #define _evaluate_numerically                44
 #define _multiply_polynomials                47
 #define _numerical_exponents                 49
 #define _alg1_exponents                      50
 #define _alg1_simplify                       57
 #define _add_numerical_fractions             58
 #define _simplify_fractions                  59
 #define _numerical_compound_fractions        60
 #define _alg1_compound_fractions             61
 #define _numerical_radicals                  63
 #define _alg1_radicals                       64
 */

const InequalityTopics = [48,55,82,93,94,95,96];
/*
 #define _alg1_absolute_value                 48
 #define _alg1_linear_inequality              55
 #define _absolute_value                      82
 #define _solve_linear_inequality             93
 #define _solve_polynomial_inequality         94
 #define _solve_rational_inequality           95
 #define _solve_root_inequality               96
*/
 
const LinearAlgebraTopics = [56,66,67,68,69,70,71];


 /* 
 #define _alg1_linear_systems                 56
 #define _eqns_by_substitution                66
 #define _eqns_by_adding_eqns                 67
 #define _eqns_in_matrix_form                 68
 #define _gauss_jordan                        69
 #define _eqns_by_matrix_inverse              70
 #define _cramers_rule                        71
*/

const SimplifyTopics = [72,73,74,75,76,77,78,79,80,81,83,84,99,100,101,103,108,110,112,115,116,117,118,119,122,123,126,129,130,148];

 /* 
 #define _simplify                            72
 #define _simple_commondenom                  73
 #define _advanced_commondenom                74
 #define _compound_fractions                  75
 #define _simplify_polynomials                76
 #define _simple_exponents                    77
 #define _simplify_rational_functions         78
 #define _negative_exponents                  79
 #define _eliminate_negative_exponents        80
 #define _radicals                            81
 #define _fractional_exponents                83
 #define _eliminate_fractional_exponents      84
 #define _simplify_roots_and_powers           99
 #define _simplify_roots_and_fractions       100
 #define _simplify_any_function              101
 #define _evaluate_trig                      103
 #define _trig_product                       108
 #define _trig_simplify                      110
 #define _inverse_trig_functions             112
 #define _complex_arithmetic                 115
 #define _logarithms                         116
 #define _change_log_base                    117
 #define _exponentials                       118
 #define _simplify_logpower                  119
 #define _polar_form                         122
 #define _de_moivre                          123
 #define _complex_trig                       126
 #define _sigma_notation                     129
 #define _binomial_theorem                   130
 #define _sigma_notation1                    148

*/

const VerifyIdentityTopics = [45,102,104,105,106,107,109,111,124,125];
/*
 #define _verify_algebraic_identity           45
 #define _verify_alg2_identity               102
 #define _basic_trig                         104
 #define _trig_addition                      105
 #define _double_angle                       106
 #define _half_angle                         107
 #define _trig_factor                        109
 #define _trig_identities                    111
 #define _hyperfunctions                     124
 #define _hyperfunctions2                    125
*/

const FactorTopics = [51,52,53,85,88];
/*
 #define _simple_factoring                    51
 #define _alg1_factor_quadratic               52
 #define _factor_by_grouping                  53
 #define _factor_quadratics                   85
 #define _advanced_factoring                  88
*/ 

const SolveTopics = [46,54,62,65,86,87,89,90,91,92,97,98,113,114,120,121,127,128,131];
/*
 #define _solve_linear_equation               46
 #define _complete_the_square                 54
 #define _equations_containing_fractions      62
 #define _solve_linear_eqn                    65
 #define _quadratic_formula                   86
 #define _solve_quadratic_equation            87
 #define _solve_higher_degree_equation        89
 #define _solve_rational_equation             90
 #define _solve_root_equation                 91
 #define _solve_fractions_and_roots           92
 #define _cubic_one_root                      97
 #define _solve_equation                      98
 #define _simple_trig_eqn                    113
 #define _trig_eqn                           114
 #define _log_eqn                            120
 #define _exp_eqn                            121
 #define _complex_quadratics                 127
 #define _complex_cubics                     128
 #define _complex_roots                      131
*/

const DifferentiateFromDefinitionTopics = [134,159];
/*
 #define _diff_from_def                      134
 #define _diff_exp_from_defn                 159
*/

const DifferentiationTopics = [135,136,138,139,140,141,151,160,161,162,163,164,165];
/*
 #define _diff_polynomial                    135
 #define _diff_basics                        136
 #define _diff_trig                          138
 #define _chain_rule                         139
 #define _difreview                          140
 #define _higher_order_diff                  141
 #define _fundamental_theorem                151
 #define _diff_exp                           160
 #define _diff_logs                          161
 #define _logarithmic_differentiation        162
 #define _diff_arctrig                       163
 #define _diff_hyperbolic                    164
 #define _diff_any_function                  165
*/



const LimitTopics = [132,133,137,145,146,147,155,156,157,158];

 /* 
 #define _polynomial_limits                  132
 #define _simple_limits                      133
 #define _lim_trig                           137
 #define _rational_limits                    145
 #define _limits_at_infinity                 146
 #define _infinite_limits                    147  
 #define _lim_exp                            155
 #define _lhopitals_rule                     156
 #define _limleadingterm                     157
 #define _limits_any_function                158
*/
	
const IntegrationTopics = [149,150,152,153,154,166,167,168,169,170,
	171,172];
	
/*
 #define _int_poly                           149
 #define _simple_int                         150
 #define _int_by_substitution                152
 #define _int_by_parts1                      153
 #define _intreview                          154
 #define _int_by_parts2                      166
 #define _int_logs                           167
 #define _trigpower_integrals                168
 #define _trig_substitution                  169
 #define _integrate_rational_functions       170
 #define _rationalizing_substitutions        171
 #define _integrate_any_function             172
*/

function entryPage(topic){
// return the URL of the entry page, for example "EnterSimplify.php" to be used
// when the Problem Library problem specified by topic is edited.
  	if(OrdinaryGraphTopics.includes(topic))   // topics 1-15, see above
  		return "./EnterOrdinaryGraph.php";
	switch(topic){
		case 16:  // _graph_taylor
		case 17:  // _graph_fourier 
		case 18:  // _compare_same 
			return "./EnterCompareSame.php";
		case 19: // _compare_different
			return "./EnterCompareDifferent.php";
		case 20: // _graph_ineq 
			return "./EnterGraphInequality.php";
		case 21:  // _graph_set 
			return "./EnterGraphRelationInequality.php";
 		case 22:   // _graph_circle 
		case 23:   // _graph_ellipse 
		case 24:   // _graph_parabola 
		case 25:   // _graph_hyperbola
		case 26:   // _graph_relation
			return "./EnterGraphRelation.php";
		case 27:  // _polyroots 
			return "./EnterGraphComplexRoots.php";
		case 28: // _parametric_graph 
			return "./EnterGraphParametric.php";
		case 29: //  _polar_graph 
			return "./EnterGraphPolar.php";
		case 30:  //_comparefandfprime 
			return "./EnterGraphDeriv.php";
		case 31:  //_comparetwoderivs
			return "./EnterGraphDerivs.php";
		// 32 is _contour_plot, not supported
		// 33 is complex_contour_plot, not supported
		case 34:  // _solve_ode 
			return "./EnterODE.php";
		case 35:  //_solve_two_odes
			return "./EnterTwoODEs.php";
		case 36: //  _high_order_ode 
			return "./EnterHDE.php";
		case 37:   //  _riemann_sums 
			return "./EnterRiemannSums.php";
		case 38:  //_trapezoid_rule
			return "./EnterTrapezoidRule.php";
		case 39:   // _simpsons_rule 
			return "./EnterSimpsonsRule.php";
	}
			
		//  40-43 are kinds of surfaces.  Web MathXpert has no 3d graphics, so these are not supported.
		
	if( AlgebraTopics.includes(topic) ||   // 44-50  and 57-64 ;  51-54 are in FactorTopics, 55 and 56 in InequalityTopics and LinearAlgebraTopics
		 SimplifyTopics.includes(topic)		// 72-84 and [99,100,101,103,108,110,112,115,116,117,118,119,122,123,126,129,130,148]
		)
		return "./EnterSimplify.php";  
	if( FactorTopics.includes(topic))     // 51-54  and 85,88
		return "./EnterFactor.php";
	if( SolveTopics.includes(topic))   // [65,86,87,89,90,91,92,97,98,113,114,120,121,127,128,131];
		return "./EnterSolveEquation.php";
	if (InequalityTopics.includes(topic))  // 55 and 82 and 93-96
		return "./EnterInequality.php";
	if( LinearAlgebraTopics.includes(topic))  // 56 and 66-71 
		return "./EnterLinearEquations.php";
	if( VerifyIdentityTopics.includes(topic))   // [45, 102,104,105,106,107,109,111,124,125];
		return "./EnterVerifyIdentity.php";
	if( DifferentiateFromDefinitionTopics.includes(topic))  //[134,159];
		return "./EnterDifFromDefn.php";
	if( LimitTopics.includes(topic))  // [132,133,137,145,146,147,155,156,157,158];
		return "EnterLimit.php";
	if (DifferentiationTopics.includes(topic))  //[135,136,138,139,140,141,151,160,161,162,163,164,165];
		return "EnterDerivative.php";
	if (IntegrationTopics.includes(topic))  // [149,150,152,153,154,166,167,168,169,170,171,172];
		return "EnterIntegral.php";
	
	switch(topic)
		{
			case 142: // _implicit_diff
				return "./EnterImplicitDiff.php";
			case 143: // _related_rates
				return "./EnterRelatedRates.php";
			case 144:  // _minmax
				return "./EnterMaxMin.php";
			case 173: // _improper_integrals
				return "./EnterImproperIntegral.php";
			case 174:  // _sum_series
				return "./EnterInfiniteSeries.php";  // for adding up series
			case 175:  // _integral_test 
			case 176:  //_comparison_test
			case 177:  // _root_ratio_tests
				return "./EnterInfiniteSeries.php";  // but also for convergence testing
			case 178:  // _power_series1  (derive basic series)
			case 179:  // _power_series2  (assumes basic series known)
				return "./EnterPowerSeries.php";
		}
	console.log("topic not found in entryPage: ", topic);
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists