## 189 Reputation

18 years, 290 days

## Changing union, intersection etc for a n...

I have a user defined type named FST which is like [list of numbers between 0 and 1 inclusive,list of names]. I now want to change union of two objects of type FST to be as maximum of evry pair of corresponding elemnts of first sublists. For example suppose A:=[[.3,.4,.2],[a,b,c]]; B:=[[.7,0,.2],[a,b,c]]; Then writing >A union B; should give [[.7,.4,.2],[a,b,c]] Thanking in anticipation.

## Identifying a set as the one already def...

Suppose we have two sets A={a,b,c} and B={a,c}. And we write > A union B; we get {a,b,c}. But I want this to be replied as A only. How this can be done? Thanks.

## Defining a new type and changing print c...

How can a new type be defined in Maple? For example a type named fst and given as [list of numbers between 0 and 1 inclusive, list of anything]. Further whenever this fst type object is encountered it is printed useing elements of first sublist as subscripts of elements of second sublist. Thanking in anticipation.
 1 2 3 4 Page 4 of 4
﻿